Cross-Scope Application access issue

Andrew158
Giga Guru

Hello Everyone,

 

I am trying to run a fix script that would create and update some records in the table 'u_workspace', however when I run the script, I get the following error:

Andrew158_0-1682105142467.png

What's confusing about this is that I have already created the necessary cross-scope application access records for the u_workspace table:

Andrew158_1-1682105214092.png

After this, I checked that the table itself had the appropriate application access and it did:

Andrew158_2-1682105339446.png


I'm now unsure what the issue is or how to troubleshoot further. Does anyone know why I might be seeing this error?

Thanks,
Andrew O'Connor

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Andrew158 Please correct me if I am wrong, your table Workspace (u_workspace) exists within Global Scope whereas the cross scope records which you have created are for Target scope Workplace Safety Management. Since the cross scope records are created for wrong scope hence you are seeing cross scope errors.

 

I recommend to create Cross scope record where Source Scope is FM Systems Integration Engine and Target Scope is Global, with following configuration.

 

Andrew158_1-1682105214092.png

 

Hope this helps.

View solution in original post

4 REPLIES 4

Karan Chhabra6
Mega Sage
Mega Sage

Hi @Andrew158 ,

 

Did you clear the cache? If not, please run this code in the background script and test again.

gs.invalidateCache();

 

If my answer has helped with your question, please mark this as helpful

 

Thanks!!

Bert_c1
Kilo Patron

Hi Andrew,

 

I don't see any steps-to-reproduce. I have fix scripts in my instance, and I must have my Application Scope match that of the fix script's application scope to edit them.  While I have the 'Run Fix Script' button on those not in my current Application Scope, I do get errors. but not what you show. So more context is needed I believe to determine how to fix your issue.

Sandeep Rajput
Tera Patron
Tera Patron

@Andrew158 Please correct me if I am wrong, your table Workspace (u_workspace) exists within Global Scope whereas the cross scope records which you have created are for Target scope Workplace Safety Management. Since the cross scope records are created for wrong scope hence you are seeing cross scope errors.

 

I recommend to create Cross scope record where Source Scope is FM Systems Integration Engine and Target Scope is Global, with following configuration.

 

Andrew158_1-1682105214092.png

 

Hope this helps.

Boy do I feel stupid right now... not sure why I was so sure it was in the scope I was targeting, you can literally see the answer to my issue in the third screenshot. 

Thanks!