Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

Retail hardware station installation

$
0
0

Hi all,

I want to automate the  hardware station installation process without user interaction, I want to know how to handle programmatically the user interaction steps which we perform during manual installation like entering URL,selecting store name, selecting hardware profile name

TIA

Regards

Naresh


RE: POS 101 and 102 Unidentified error when trying to save the transaction.

$
0
0

Hi,

Go to  C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail POS

Make a backup of the file POS.exe.config file and change the property switchValue for the following section:

***

  <system.diagnostics>
    <sources>
      <!-- this registers the listener with traces from a specific source -->
      <source name="RetailNetTracer" switchValue="All">
        <listeners>
          <add name="RollingXmlWriterTraceListener" />
        </listeners>
      </source>
      <source name="RetailNetTracerEventLog" switchValue="All">
        <listeners>
          <add name="EventLogTraceListener" />
        </listeners>
      </source>
      <!-- The below source and listener are required for Retail monitoring to function correctly. Please do not modify either. -->
      <source name="RetailMonitoringTracer" switchValue="All">
        <listeners>
          <add name="MonitoringEventLogTraceListener" />
        </listeners>
      </source>
    </sources>
    <!-- this defines a listener -->

...

***

This way you can have more details about the error in the event viewer and some clue to the solution.

POS 101 and 102 Unidentified error when trying to save the transaction.

$
0
0

When trying to save transaction in POS, POS showing 1001 and 1002 un identified error. This transaction has to connect HO server also.

Head office and Retail store Connectivity

HO(AX Server)->Retail Store Server(File is mounted in local server )-> Store Terminals (Terminals accessing the file from Local Server)

Below message is showing in Event Viewer.

1.Log Name: Application
Source: Dynamics AX Retail
Date: 08/09/2018 5:29:30 PM
Event ID: 1
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: OMRHI104
Description:
LSRetailPosis.POSProcesses.POSApp: System.InvalidOperationException: ExecuteScalar requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.InvokePOSMainWindow(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.ShowPOSErrorDialog(PosisException x)
at LSRetailPosis.POSProcesses.POSApp.ConcludeTransaction()
at LSRetailPosis.POSProcesses.POSApp.ResultCallback(PosTransaction clonedTransaction, OperationInfo operationInfo)
at LSRetailPosis.POSProcesses.POSApp.RunOperationInternal(PosisOperations operationID, Object extraInfo, OperationInfo operationInfo, PosTransaction newPosTransaction).
Event Xml:
<Event xmlns="schemas.microsoft.com/.../event">
<System>
<Provider Name="Dynamics AX Retail" />
<EventID Qualifiers="0">1</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2018-09-08T13:29:30.287487600Z" />
<EventRecordID>4506</EventRecordID>
<Channel>Application</Channel>
<Computer>xxxxxI104</Computer>
<Security />
</System>
<EventData>
<Data>LSRetailPosis.POSProcesses.POSApp: System.InvalidOperationException: ExecuteScalar requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.InvokePOSMainWindow(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.ShowPOSErrorDialog(PosisException x)
at LSRetailPosis.POSProcesses.POSApp.ConcludeTransaction()
at LSRetailPosis.POSProcesses.POSApp.ResultCallback(PosTransaction clonedTransaction, OperationInfo operationInfo)
at LSRetailPosis.POSProcesses.POSApp.RunOperationInternal(PosisOperations operationID, Object extraInfo, OperationInfo operationInfo, PosTransaction newPosTransaction).</Data>
</EventData>
</Event>

2.Log Name: Application
Source: Dynamics AX Retail
Date: 08/09/2018 5:29:30 PM
Event ID: 1
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: OMRHI104
Description:
LSRetailPosis.POSProcesses.POSApp: System.InvalidOperationException: ExecuteScalar requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.InvokePOSMainWindow(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.ShowPOSErrorDialog(PosisException x)
at LSRetailPosis.POSProcesses.POSApp.ConcludeTransaction()
at LSRetailPosis.POSProcesses.POSApp.ResultCallback(PosTransaction clonedTransaction, OperationInfo operationInfo)
at LSRetailPosis.POSProcesses.POSApp.RunOperationInternal(PosisOperations operationID, Object extraInfo, OperationInfo operationInfo, PosTransaction newPosTransaction).
Event Xml:
<Event xmlns="schemas.microsoft.com/.../event">
<System>
<Provider Name="Dynamics AX Retail" />
<EventID Qualifiers="0">1</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2018-09-08T13:29:30.287487600Z" />
<EventRecordID>4506</EventRecordID>
<Channel>Application</Channel>
<Computer>XXXX104</Computer>
<Security />
</System>
<EventData>
<Data>LSRetailPosis.POSProcesses.POSApp: System.InvalidOperationException: ExecuteScalar requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.InvokePOSMainWindow(Delegate method, Object[] args)
at LSRetailPosis.POSProcesses.POSFormsManager.ShowPOSErrorDialog(PosisException x)
at LSRetailPosis.POSProcesses.POSApp.ConcludeTransaction()
at LSRetailPosis.POSProcesses.POSApp.ResultCallback(PosTransaction clonedTransaction, OperationInfo operationInfo)
at LSRetailPosis.POSProcesses.POSApp.RunOperationInternal(PosisOperations operationID, Object extraInfo, OperationInfo operationInfo, PosTransaction newPosTransaction).</Data>
</EventData>
</Event>

RE: Hookable attribute in D365FO

$
0
0

Thanks Sukrut,

I almost understand. One thing only. How I will came to know the method those I am going to use that is Hookable? Is there any specific significant mentioned in that hookable method ?

Please give me more she'd on this

Thanks!

RE: Hookable attribute in D365FO

$
0
0

You are going to see protected methods like this

[HookableAttribute(true)]

protected void loadModule()

{

}

Hookable attribute in D365FO

$
0
0

Dear All,

I read in some blogs regarding Hookable concept. I not understand the concept properly. I saw some error they posted there.

Can you please let me know in brief what is the reason to come this error ?How to resolve this ?

Please give me more shed on this.

Thanks!

RE: How we can sync, Unsynced .rpf file from HQ to Store i.e. 1040 missed incremental data due to any reason

$
0
0

Hi Nasir,

The download status in not "Applied"? 

Is there any log in Async Client Event Viewer? maybe timeout?

How we can sync, Unsynced .rpf file from HQ to Store i.e. 1040 missed incremental data due to any reason

$
0
0

Hi Dear All,

We have a query regarding data synching my scenario is:

we are working on Dynamics R3 CU:12

Our 1040 Job is scheduled in batch for incremental data synching, but due to some reason job missed a file to replicate on Store. Now some items are not available on the store but for the availability of this missed data, we need to synch N-1040 from Channel database to apply missed data.  

My question is How we can synch missed data through any process which take only last few days updated records and update them on Store DB. I hope someone has explored this issue, is there any solution or workaround is available, just let us know.

Very thankful in advance.

Nasir Ali


RE: Hookable attribute in D365FO

$
0
0

Thanks Sukrut

I beleive public method is already hookable method.

Suppose the method I am going to use in Event handler i.e Non hookable method .

Can I make it as Hookable method?

OR

Instead of making hookable,  shall I go for COC. I believe COC supports both hookable or Non hookable method.

Please give me more she'd on this

Thanks!

RE: Hookable attribute in D365FO

RE: Hookable attribute in D365FO

$
0
0

Thanks Rustem

Yes I go through the link. I understand almost.

1. If I wants to do any Non hookable method to Hookable method then only I have to declare

Hookable Attribute(True)

Protected void calc()

2. I already asked Instead of making hookable,  shall I go for COC. I believe COC supports both hookable or Non hookable method.

Please give me more she'd on this

Thanks!

AX 2012 CustAccountStatementExt is not sent as attachement for few customers

$
0
0

Hi All,

I have a tricky issue. I have Two customers for who i can generate in screen a CustAccountStatementExt report.

If i try to send them by email directly from AX, for one of them the report is never attached but i can not understand why ?

So the customer receive the mail but without the report.

I am searching for understand what can be the root cause of this unexpected behavior?

Could you please help me ?

RE: Hookable attribute in D365FO

$
0
0

Yes. But if a method is explicitly marked as Hookable(false), the method can't be wrapped in an extension class.

RE: Hookable attribute in D365FO

$
0
0

Yes you have to use coc now because any standard method you can not change now.

RE: Hookable attribute in D365FO

$
0
0

1) You can't do this for the standard methods since that would require overlayering

2) Just use CoC when you can.

Hookable was just a way for MS to expose protected methods for event handlers. CoC came later and has mostly replaced event handlers (and will continue to do so with the new CoC capabilities of PU20).

You will still need event handlers in many cases, mostly on the framework events on forms and tables. But hookable attribute on a protected method is not very important any more.


RE: Hookable attribute in D365FO

$
0
0

Thanks everyone

So, if I got the above error in any methods while using Event handler then I will go for COC instead of making hookable.

Thanks!

RE: Hookable attribute in D365FO

$
0
0

Yes COC is the way going forward as I said earlier, you can not decorate any method now , as all packages are blocked for overlayering.

RE: Hookable attribute in D365FO

RE: Ax2012 XDS Security issue.

$
0
0

First of all you need to start from the version, you did not correct your tags so we have to guess if its 2012 or D365. Then give us some detail about query you have, mywarehouseXDS table properties  and code in XDS  method.

RE: Consistency check - Inventory managment in x++ job

$
0
0

Should be something like

InventConsistencyCheck    inventConsistencyCheck;
SysConsistencyCheckJob    systemConsistencyCheckBase= new SysConsistencyCheckJob(classIdGet(inventConsistencyCheck));

systemConsistencyCheckBase.parmCheckFix(CheckFix::Fix);
systemConsistencyCheckBase.run();


Viewing all 175888 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>