Hello again,
There are two places you need to set this up. First in Administration > Resources so that tracing is enabled for the user that's carrying out the XOG. Second you need to enabled XOG tracing in the NSA:
Then when you run the XOG you should see things like this in app-trace.xml:
<persistence id="
xog.obsLookup" elapsed="0.000" elapsedSincePriorNode="1.000" elapsedAfterLastNode="0.000" start="2:35:26:943" finish="2:35:26:943" memoryDelta="0k">
<statementSet id="xog.obsLookup" location="xog_obs.xml" elapsedSincePriorNode="0.000" start="2:35:26:943"/>
<statement elapsed="0.000" elapsedSincePriorNode="1,653,053,726,944.000" elapsedAfterLastNode="0.000" start="2:35:26:943" finish="2:35:26:943" memoryDelta="0k">
<execute id="STMT-410154296" elapsed="0.000" elapsedSincePriorNode="0.000" start="2:35:26:943" finish="2:35:26:943" memoryDelta="0k">
<![CDATA[SELECT u.type_id,
u.id unit_id,
u.name unit_name,
t.name type_name,
t.unique_name
FROM prj_obs_associations a, prj_obs_units u, prj_obs_types t
WHERE a.unit_id = u.id
AND a.record_id = ?
AND a.table_name = ?
AND u.type_id = t.id
order by t.unique_name, u.name
setLong(): 1, 5001000
setObject(): 2, cop_prj_statusrpt
]]>
</execute>
</statement>
</persistence>
<persistence id="xog.obsSecurityLookup" elapsed="1.000" elapsedSincePriorNode="1.000" elapsedAfterLastNode="0.000" start="2:35:26:944" finish="2:35:26:945" memoryDelta="0k">
<statementSet id="xog.obsSecurityLookup" location="xog_security.xml" elapsedSincePriorNode="0.000" start="2:35:26:944"/>
<statement elapsed="1.000" elapsedSincePriorNode="1,653,053,726,945.000" elapsedAfterLastNode="1.000" start="2:35:26:944" finish="2:35:26:945" memoryDelta="0k">
<execute id="STMT-819313417" elapsed="0.000" elapsedSincePriorNode="0.000" start="2:35:26:944" finish="2:35:26:944" memoryDelta="0k">
<![CDATA[SELECT a.principal_type right_mode,
r.group_code right_code,
t.unique_name type_unique_name,
u.id unit_id,
u.name unit_name,
t.name type_name
FROM cmn_sec_assgnd_right a,
prj_obs_units u,
prj_obs_types t,
cmn_sec_groups r
WHERE a.principal_id = u.id
AND a.instance_id = ?
AND a.instance_type = ?
AND a.right_id in (select id from cmn_sec_groups where right_type = ?)
and a.right_id = r.id
AND u.type_id = t.id
order by unit_name, type_unique_name, right_code
setLong(): 1, 5001000
setObject(): 2, INSTANCE
setObject(): 3, cop_prj_statusrpt
]]>
</execute>
</statement>
</persistence>
With luck the statement that contains the t0.id reference will show up.
Just a quick one though, what's the compatibility level in SQL Server set to?
Original Message:
Sent: May 20, 2022 09:02 AM
From: Diego Chamarelli
Subject: ERROR AFTER UPGRADE FROM 16.0.1 TO 16.0.2 - SQL SERVER DB
Hi Paul!
Thanks for the answer!
I thought that Trace would just log what was happening during the interface navigation.
can it trace the xog too ?
------------------------------
______________________________________________
Analista de Sistemas
Ágila Tecnologia
Brasil
Original Message:
Sent: May 20, 2022 02:01 AM
From: Paul Schofield
Subject: ERROR AFTER UPGRADE FROM 16.0.1 TO 16.0.2 - SQL SERVER DB
Hello there,
Can you turn on a trace and see what the query is trying to do? The t0.id looks like a table alias (t0) and a column called "id" on it.
Paul
Original Message:
Sent: May 19, 2022 06:26 PM
From: Diego Chamarelli
Subject: ERROR AFTER UPGRADE FROM 16.0.1 TO 16.0.2 - SQL SERVER DB
Hello everyone,
First things first, that´s our DEV enviroment:
SQL SERVER 2019 - V 15.0.4223.1
Windows Server 2016 Standard Version 10.0.14393 Build 14393
Clarity 16.0.2
Now, the problem:
We are facing some issues after upgraded from 16.0.1 to 16.0.2
When we try to xog in any project instance the error below it´s happening:
<Exception><![CDATA[SQL Exception with error code : 4104 message: [CA Clarity][SQLServer JDBC Driver][SQLServer]The multi-part identifier "t0.id" could not be bound.]]></Exception>
</>
This is the XOG we are trying to execute:
This is the result of the xog we are trying to execute:
This only happen when we use XOG , it´s not happening when we use the interface (old or new UX) to update or create projects.
This is not happening when we xog in custom objects or when we xog out any instance of custom or native objects.
Our QA and Production enviroments still running PPM 16.0.1 and if we try to execute the same xog, it works fine.
Any help will be immensely appreciated.
Best regards from Brasil.
------------------------------
______________________________________________
Analista de Sistemas
Ágila Tecnologia
Brasil
------------------------------