Forum Discussion
Hi Bala
Try using Utils.CCO.Cache.GetItemTypeFromCache(ref string, ref string) and let me know if it works
Hi Gopi
Thanks for your quick response.
Actually the error is thrown when I put a break point in the method and check for syntax. Else there is no such warning and the method executes without throwing any errors.
And I pass string only. please ref the image below,
Thanks.
- christopher_gillis6 years agoCommunity Manager
Hi sbala,
I tried looking for these snippets of code in a local database and found it was used in some standard methods like PE_GetRelatedParts. In general, the Utils and CCO classes are not needed and are typically only used by experienced Aras developers. Where possible, it's also best not modify standard methods like these as making changes to them can have unintended results.
Could you clarify what you're use case is? There might be a better alternative approach you could take instead of modifying this method.
Chris
Christopher Gillis
Aras Labs Software Engineer
- sbala6 years agoCreator I
Hi Christopher,
Thanks for your reply!!
The actual issue was in PLM some of the parts were not displayed as shown below,
Those parts were created using the cad connector. To troubleshoot this issue i thought to put a break point code in the method PE_GetRelatedParts.
That resulted in error. My actual requirement is to check the root cause of parts not displayed in one of the CAD item in plm. This is happening only for one user account. I tried with admin/. supper account and my account as well. It is working perfectly as expected. I can able to view the parts for that CAD item. So i couldn't find a way to approach this issue to resolve.
How do i approach this issue?
Thanks.
- christopher_gillis6 years agoCommunity Manager
Hi sbala,
This sounds like a permissions issue that can be checked and fixed outside of any code. If you go to the CAD item in question, you can look at the permissions of the item by selecting Views > Permissions > View. You can then check the identities on this permission to make sure that your user account has access to view this CAD item.
Chris