GetCustomEntitiesByIds returns error 303

GetCustomEntitiesByIds returns error 303

psaarloos
Collaborator Collaborator
898 Views
4 Replies
Message 1 of 5

GetCustomEntitiesByIds returns error 303

psaarloos
Collaborator
Collaborator

Hi,

 

I am trying to access a Custom Object while logged in as administrator in a read-only connection. It seems all the Get.. funtions of the CustomEntityService are failing. The documentation tells the permission 'CustomEntityRead' is needed which is the case for the administrator user. How can I fix this?
'

Regards,
Pim Saarloos
Product Manager
If my post answers your question, please click the "Accept as Solution" button. Kudos are much appreciated!
0 Likes
899 Views
4 Replies
Replies (4)
Message 2 of 5

sajith_subramanian
Autodesk Support
Autodesk Support

Hi @psaarloos,

 

Could you try running the code with a read-only = false connection and see if it works. I believe custom entities are explicitly intended to not support license-free access.

 

Regards,

Sajith


Sajith Subramanian
Autodesk Developer Network
0 Likes
Message 3 of 5

Anonymous
Not applicable

Hi,

 

I don't have the same error, bur I don't connect in read-only too.

I tested with "read-only = False", the result is same.

My message is  :

New-Object : Exception calling ".ctor" with "1" argument(s): "Exception of type 'Autodesk.Connectivity.WebServices.VaultLicenseException' was thrown."

 

But on version 2019, that's works perfectly, but not in 2020 version.

 

Can you help me ?

0 Likes
Message 4 of 5

sajith_subramanian
Autodesk Support
Autodesk Support

Hi @Anonymous ,

 

Could you set your project to x64 and ensure that the AdskLicensingSDK_2.dll is present in your output directory? Also I can take a look at your code if it is non confidential and you can share it with us.

 

Regards,

Sajith


Sajith Subramanian
Autodesk Developer Network
Message 5 of 5

Anonymous
Not applicable

Hi @sajith_subramanian ,

 

I tested this morning, the AdskLicensingSDK_2.dll must be present in my output directory. Like this, the export works perfectly.

 

During my old test, I did not think about restarting the PowerShell completely, and it did not load the dll file.

 

Thanks for your help.

 

One more question, would there be the possibility that this AdskLicensingSDK_2.dll file should not be copied in the output directory (path in the code for exemple) ?

 

Best regards,

Romain

0 Likes