Monday 7 August 2017

Aras innovator promoteItem from one state to another state

<AML>
<Item type="Document" action="promoteItem" version="0" where="[Document].id='1121B0903C8C4DAEB57006C0C5234C82'" serverEvents="0">
<state>Superseded</state>
</Item>
</AML>

Error LifeCycle: PromoteItem: Transition to promote Part from Preliminary to Released not found

LifeCycle: PromoteItem: Transition to promote Part from Preliminary to Released not found
Internal Error: failed to get the transition to promote the Part from Preliminary to Released
Aras Innovator error.
Solution:
You are missing “Assigned Creator” value for a Item, first provide “Assigned Creator” value, then try to promoteitem.
This is the AML which used to promote the state for an Item.
<AML>
<Item type=”Part” action=”promoteItem” where=”[PART].item_number=’P0001′”>
<state>New state</state>
</Item>
</AML>

Not able debug the code using Office connector.

Not able debug the code using Office connector.
Alternate way is- enabling logging:
Go to Innovator server.
Open: InnovatorServerConfig.xml
<operating_parameter key="debug_log_flag" value="false" />
Change to : <operating_parameter key="debug_log_flag" value="true” />
Note: This will be log each action, so after logging your action set back to “false”
Go to this path:
C:\ArasBuilds\B12345\Innovator\Server\logs\
Open .xml
AML, which is passing OC to Aras:
<Item isNew="1" isTemp="1" type="Part" action="add" id="E2FD1158A14A4C99A9D8AD51BC7E74F7">
                                <item_number>Part</item_number>
                                <external_owner>Aras.Document.MS-Office</external_owner>
                                <authoring_tool>Microsoft Excel</authoring_tool>
                                <classification>Test</classification>
                                <from_template>
                                </from_template>
                                <locked_by_id>AD30A6D8D3B642F5A2AFED1A4B02BEFA</locked_by_id>
                                <thumbnail>vault:///?fileId=DBA6420BA6E1400D89F8C2B9A75F4D55</thumbnail>
                </Item>


Delete Client Cache from Aras innovator

Open Aras innovator
Go to Tools --> Admin -->Clear Client Metadata Cache
Delete any IE temporary files 

Aras VaultFiles files location

TO find any file in Innovator
go to Administrator
File handling
Files
Search for file name which you know.

If you want know the location of that file.
go to IIS
open Innovator web site
Right click
go to explorer

C:\[Innovator]\[InnovatorWebSite]\Logs\VaultFiles\[InnovatorWebSite]\[1\0F\5898444B147289C46295BF3BF9C56]

In this path u can find physical file.

Aras innovator enabling logging

Aras innovator enabling logging:
Go to Innovator server.
Open: InnovatorServerConfig.xml
<operating_parameter key="debug_log_flag" value="false" />
Change to : <operating_parameter key="debug_log_flag" value="true” />
Note: This will be log each action, so after logging your action set back to “false”
Go to this path:
C:\LocalBuild\ArasInn\Innovator\Server\logs\
Open .xml
You will see all the logs (AML) which are sending to aras

Aras debugging



Add this in innovatorconfig.xml

in method add this: if (System.Diagnostics.Debugger.Launch()) System.Diagnostics.Debugger.Break();

when we call method, it will open VS and run debugging
if VS is not opened,
Open VS as admin
Click Tools
Click Attach process
Click Show processes for all users
Search for  w3wp.exe
select right w3wp.exe (should be innovator, not vault)
Attach
OK

Now you will get debugging