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

PRODUCT JOB (1040) IS NOT WORKING PROPERLY

$
0
0

Dear Folk,

I am getting following error when I synching a Product job (1040) at "ABC" store.

Scenario - I have three store

  • ABC Store
  • DEF Store
  • GHI Store

I run the all job on ABC store, DEF  store and GHI store. It worked perfectly for more than 5 to 10 times.  Now i am getting following erro when I am running the Product Job for all above three store.

Error is here under

Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.ProcessSourceRequestHeaderException: ProcessTargetRequestHeader failed due to an InvalidOperationException.
connectionString: Data Source=AOS-TV;Initial Catalog=AlraiLiveStoreDB_NEW;Integrated Security=True;Connect Timeout=60;Application Name="Commerce Data Exchange Async Client" ---> System.InvalidOperationException: The given value of type String from the data source cannot be converted to type nvarchar of the specified target column. ---> System.InvalidOperationException: String or binary data would be truncated.
at System.Data.SqlClient.SqlBulkCopy.ConvertValue(Object value, _SqlMetaData metadata, Boolean isNull, Boolean& isSqlType, Boolean& coercedToDataFeed)
--- End of inner exception stack trace ---
at System.Data.SqlClient.SqlBulkCopy.ConvertValue(Object value, _SqlMetaData metadata, Boolean isNull, Boolean& isSqlType, Boolean& coercedToDataFeed)
at System.Data.SqlClient.SqlBulkCopy.ReadWriteColumnValueAsync(Int32 col)
at System.Data.SqlClient.SqlBulkCopy.CopyColumnsAsync(Int32 col, TaskCompletionSource`1 source)
at System.Data.SqlClient.SqlBulkCopy.CopyRowsAsync(Int32 rowsSoFar, Int32 totalRows, CancellationToken cts, TaskCompletionSource`1 source)
at System.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinued(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source)
at System.Data.SqlClient.SqlBulkCopy.CopyBatchesAsync(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source)
at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternalRestContinuedAsync(BulkCopySimpleResultSet internalResults, CancellationToken cts, TaskCompletionSource`1 source)
at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternalRestAsync(CancellationToken cts, TaskCompletionSource`1 source)
at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternalAsync(CancellationToken ctoken)
at System.Data.SqlClient.SqlBulkCopy.WriteRowSourceToServerAsync(Int32 columnCount, CancellationToken ctoken)
at System.Data.SqlClient.SqlBulkCopy.WriteToServer(IDataReader reader)
at Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlWriteRequestRunner.BulkCopyData(SqlConnection connection, SqlTransaction transaction)
at Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlWriteRequestRunner.Run(SqlConnection connection, SqlTransaction transaction)
at Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlTargetRequestHandler.ProcessWriteRequest(SqlConnection connection, SqlTransaction transaction)
at Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlTargetRequestHandler.ProcessTargetRequestHeader(ISCTargetRequestHeader targetRequestHeader)
--- End of inner exception stack trace ---
at Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlTargetRequestHandler.ProcessTargetRequestHeader(ISCTargetRequestHeader targetRequestHeader)
at Microsoft.Dynamics.Retail.SynchClient.Core.DownloadAgent.ApplySessionFileToClientDatabase(SessionManager sessionMgr, String fileName)

Your help and guidance is most welcome

Thanks in advance

--


Setting up a new Warehouse: 1600 new locations

$
0
0

Hi all!

Is there a way to use an import tool to create large volumes of picking locations using excel or a crt file?  I am setting up a new warehouse and will need 1600 new pallet locations.  I do not want to type in all of them individually or it will take forever.  I use an upload tool to upload journal data, and wondering if there is a way to do the same type of thing for locations. 

Any ideas?

Thanks!

Detailed Trial Balance export to CSV

$
0
0

When we export the detailed trial balance report or any SSRS report  to csv , the parameters are getting exported in columns. There are almost 20+ columns exported of which only 8-10 are useful. How can we supress the data being exported..?

even if i set the visibility property to below for each text box ,it's not working instead resulting in error "Name is invalid identifier"

=IIF(Globals!RenderFormat.Name=”EXCELOPENXML”,True,False) 

 

Any inputs to solve this ..?

Deploy sandbox for customer

$
0
0

Hi,

I would like to know if I want to deploy a sandbox environment for our customer. Do I need to deploy it from our LCS site (partner) or we can deploy it from customer's LCS site?

Regards,

Warehouse Mobile Devices Hangs After Completing its Work

$
0
0

Hi there,

             From few days Warehouse Mobile Devices are getting Stuck or Hanged on a particular screen, after completing the Work i.e. after scanning the LP and Serial Number.

           If we are performing any work related to Transfer Order, Purchase Order or sales Order we are getting the same error in Warehouse mobile devices.

          To solve this issue  We are manually ending the session of that particular user, or Restarting the AOS service.

Please suggest me how to resolve this issue.

Thanks

Regards 

Can we connect ax 2009 with Sql 2014 database server

$
0
0

Can we connect AX 2009  with SQL 2014 database server ?.

Any updates released from Microsoft

Get Item value after allocating Miscellaneous charges in AX2012R3

$
0
0

Dear Friends,

i wanted to create report to get existing last purchase value of the item and cost value after allocating Miscellaneous charges.

is there any Table field to get Cost value after allocating charges?

Thanks in Advance.

Amith Prasanna

Rectification of opening balances:

$
0
0

Dear All,

One of my clients they are using AX 2012 R3. They have posted few transactions in 2015 and run the closing process(Fiscal year close). Balances are not matching. Now they want to upload direct opening balances for 2016. But in 2016 FY opening balances updated wrong. How to rectify this issue. in 2016  also they have transactions.

Thanks in advance.

Regards

Umesh


Import

$
0
0

Hi guys

I would like ask you that how i can import data from excel to dynamics ax r3

AX365 Customization: Overlayering and extensions

$
0
0

Hello,

In AX365 there are two methods of customizing source code and metadata of model elements: overlayering and extensions.

I read in other posts:

 "It is not possible to develop a solution 100% free of OverLayring, as of today".
 "You need a customization if you want to change code inside a method".

I need to:

 -create new specific table MyNewTable (Extensions)
 -new referenced field link (refrecid) related to my table in standard table StandardTable1 (ApplicationSuite) (Extensions)
 -create new others specific fields in standard table StandardTable1 (ApplicationSuite) (Extensions)
 -Initialized specific field value and standard field value from specific value (Delegates)
 -Modify other standard value from my specific value ( for instance class runnable treatement job)
 -In standard active method form datasource: modifiy standard allow edit rules (standard If/else) from specific fields ... (Extensions not possible...,Overlaying way)
 -Modify standard method with no super() (Extensions with Reflection)

I read you must create a new extension package/model (ApplicationSuiteExtension) and use Extensions Code (Events/Plugins/Class Extensions/Reclection),Table extensions/Form extensions etc

But when one point requires an overlaying way  (for instance for a specific extension field / specific table code change use inside standard code) what's mean?

Get back to an overlaying solution in a new specific model (ApplicationSuiteCustom) in ApplicationSuite package for specific field/table and inside:
-Continue to use delegates/static method extensions to minimize overlaying code
-Create extensions only for field/tables in this specific model when they are no standard code change inside a method?

An exact motion of Refresh button running

$
0
0

Hello, 

I would like to know the refresh button's processing actually executed  and its flow.

I thought that when the refresh button clicked,the changed data in windows is rollbacked and showing a current data from DB.

however, when the refresh button cliecked, i guess the changed data is commited.

Do you know what process execute when the refresh button clicked?
I need a information because i'm thinking how to use override method.

Best wishes,

FTP upload with System.Net.FtpWebRequest uploads corrupt files.

$
0
0

I have tried to upload a text file to my ftp server using this script, based on this article : http://microsoftdax.blogspot.dk/2015/05/ax-2012-upload-file-to-ftp-with-batch.html

But even though the file gets uploaded, it is corrupt, usually with a file that is way to big.

It seems to have something to do with the encoding of the file, but i can't figure out how to get it to work, any ideas?

private server static void sendToFTP()
{
    FilePath    localFilePath   = @'';
    FilePath    remoteFilePath  = @'';
    str         searchPattern   = '';
    str         ftpAddress      = '';
    str         ftpPath         = '';
    str         ftpUser         = '';
    str         ftpPass         = '';

    System.Object                   ftpo;
    System.Object                   ftpResponse;
    System.Net.FtpWebRequest        request;
    System.IO.StreamReader          reader;
    System.IO.Stream                requestStream;
    System.Byte[]                   bytes;

    System.Text.Encoding            utf8;
    System.Net.FtpWebResponse       response;
    System.Net.NetworkCredential    credential;

    int             fileCount;
    System.Array    files;
    int             i;
    str             nextFile;
    Filename        filepath;
    Filename        fileType,fileNameString;
    FileNameType    pattern = '*.TXT';
    FileName        ftpFileName,fileName;
    str             uriAux;


    new InteropPermission(InteropKind::ClrInterop).assert();

    files           = System.IO.Directory::GetFiles(localFilePath, searchPattern);

    if (files)
    {
        fileCount =    files.get_Length();

        for(i=0; i < fileCount; i++)
        {
            nextFile    = files.GetValue(i);

            [filepath, filename, fileType] = fileNameSplit(nextFile);
            fileNameString= filename + fileType;
            ftpFileName = 'ftp://' + ftpAddress + '/' + ftpPath + '/' + fileNameString;

            reader = new System.IO.StreamReader(nextFile);
            utf8 = System.Text.Encoding::get_UTF8();
            bytes = utf8.GetBytes( reader.ReadToEnd() );
            reader.Close();
            // little workaround to get around the casting in .NET
            ftpo = System.Net.WebRequest::Create(ftpFileName);
            request = ftpo;

            credential = new System.Net.NetworkCredential(ftpUser,ftpPass);
            request.set_Credentials(credential);

            request.set_ContentLength(bytes.get_Length());
            request.set_Method('STOR');
            // "Bypass" a HTTP Proxy (FTP transfer through a proxy causes an exception)
            // request.set_Proxy( System.Net.GlobalProxySelection::GetEmptyWebProxy() );
            requestStream = request.GetRequestStream();
            requestStream.Write(bytes,0,bytes.get_Length());
            requestStream.Close();

            ftpResponse = request.GetResponse();
            response = ftpResponse;
            info(response.get_StatusDescription());
        }
    }

    CodeAccessPermission::revertAssert();
}


Cancel Button going down On Mobile device screen and not visible on screen

$
0
0

In Advance warehouse Management on mobile device Cancel button is going down below the screen and users got stuck with some error so how to execute the cancel button from mobile screen to come out from that screen. is there any short cut key for Cancel?

user don't want to go to administrator every time to kill work session so he wanted to execute cancel button to come out from that error screen

Delete Financial transactions

$
0
0

Hi,

to remove the financial transaction i know that we need to clear the following tables :

GeneralJournalAccountEntry
GeneralJournalEntry
LedgerEntryJournal
LedgerEntry
Ledgerjournaltrans
Ledgerjournaltable

but is there any safe job or function to do this cleaning ? 

Report Deployment taking too long

$
0
0

Hi All,

I am facing an issue on the production instance.It is taking around 20 mins to deploy a single report from my ax client.I am not able to figure out what maybe the issues behind this. Need suggestions and advice on what maybe the underlying issue for this behaviour.

Thanks in advance

Chandan 


Import ExternalItemId when Importing Products

$
0
0

I want to import ExternalItemId in CustVendExternalItem table for each variant when importing products. Is there any way out of the box or shall I customize Variant DMF class?

Behavior when setting form property "Form Template" as ListPage

$
0
0

When you set the form property "Form Template" as ListPage, is it possible to do the following?

· Add a new method
· Override method
· Add a data source

Unable to update feedback data in route for a production order

$
0
0

Unable to update feedback data in route for a operation in a production order, what can be the reason??

Get Default Financial Dimension at Journal Name

$
0
0

Dear Experts,

I'm beginner developer customization dynamic ax

How to get default financial dimension on specific journal name through X++?

Thanks in advance

Regards,

Bintang

Posting a VAT only Invoice or Credit Note in AX Dynamics 2012

$
0
0

Hi All, 

i need help in posting a VAT only Invoice or Credit Note in AX Dynamics 2012. How can this be done? Any help would be most appreciated. 

Kind regards. 

Viewing all 73760 articles
Browse latest View live


Latest Images

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