Cancel
Showing results for 
Search instead for 
Did you mean: 

ITK API working for some objects and not working for some other objects

Valued Contributor
Valued Contributor

Hi,

 

I ran a custom ITK utility in production environment. The API WSOM_ask_object_type2(); is workig fine for some objects and for some objects (around 25) it is not working properly and giving the error message "specified enquiry cannot be executed" and the error code is 7005. I have even made a null check and the input tag for the API is not a NULLTAG.

Can anyone help me in finding the reason behind this wierd behaviour.

 

Regards,

S

5 REPLIES 5

Re: ITK API working for some objects and not working for some other objects

Solution Partner Honored Contributor Solution Partner Honored Contributor
Solution Partner Honored Contributor
You don't give an example of failed objects so, generally, that API works for Workspace Objects (objects you can see in the Rich Client) and not all objects you can access via ITK are workspace related. You could also have remote objects (multi-site or supplier collaboration) where the object isn't owned by your site (incomplete sync - stubs). And many others.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: ITK API working for some objects and not working for some other objects

Valued Contributor
Valued Contributor
I ran the same utility earlier and it worked fine for all the objects but
now it is working.

>From the syslog file I found the failed objects and those objects are child
of Item business object and they can be seen in RAC after searching it.

Re: ITK API working for some objects and not working for some other objects

Solution Partner Honored Contributor Solution Partner Honored Contributor
Solution Partner Honored Contributor
The next things to check are if the objects are remote. And if the objects have the appropriate access for the user running the utility.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: ITK API working for some objects and not working for some other objects

Valued Contributor
Valued Contributor
I am running the utility with a sub group of DBA group and also I am
setting the bypass as well.

How to check the objects are remote/ multi site.

Re: ITK API working for some objects and not working for some other objects

Solution Partner Honored Contributor Solution Partner Honored Contributor
Solution Partner Honored Contributor
Just because you run something as a DBA w/bypass does not guarantee write access. Check the permissions in the Rich Client on the object in question while logged in as the user running the utility.

You'll see two green dots at the bottom of the object icon if its remote.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4