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

Azure storage account pricing for using Azure file storage

$
0
0

Hi All,

I have a certificate file which I want to access it through code, in 2012 it was stored locally.

We are upgrading to ax 365 ,to access the file can I use azure storage (Files) and use the url in my code to access the certificate. 

Another question is the azure storage account does it come with the default azure subscription if a customer is moving to ax 365 or he has to pay additionally for using azure storage.


How to use "microsoft.office.interop.word" in batch execution (on server-side) in AX 2012?

$
0
0

Hi all,

I need to convert some .docx into PDF and this process needs to be executed in batch. I have decided to use "microsoft.office.interop.word", so I made a development in .NET and called the assembly reference in AX 2012.

This is my C# code:

using Microsoft.Office.Interop.Word;

            Application word = new Application();
            Document     doc = word.Documents.Open(@"test.docx");

            doc.Activate();
            doc.SaveAs2(@"test.pdf", WdSaveFormat.wdFormatPDF);
            doc.Close();

            word.Quit();

If I run code client-side, I do not have problem, otherwise if I run code in batch (on server-side): 

word.Documents.Open(@"test.docx");

return NULL value, then I catch this exception in AX:

"System.NullReferenceException: Object reference not set to an instance of an object."

at line doc.Activate();

Other points:

-MS Word is installed on AOS.

-CIL is correctly compiled.

It seems to be a security problem server-side that blocks process, what do you think about?

Renaming Product Dimension Manfucature(configid)

$
0
0

Is the a way to rename the manufacture ? product dimension group doesn't allow me to update it.
I have read a blog which says only size,color and style can be renamed. But is there another way to rename manufacture aswell?

Sales tax upload from excel - System rounding off the tax amount instead of uploading the amount as it is from excel

$
0
0

Requirement:Sales order is imported along with tax amount (Sales tax group and item sales tax group are part of the upload) and the same is expected to be seen in Ax. 

In the imported file, tax amount is 3811.12. But in Ax, the 'Total actual VAT amount' is taken as 3,811.00

Is there any way to upload the exact amount as specified in the import file (CSV)?

Note that, there is no rounding setup done in Ax.

Thanks,

Sandeep

new account structures not working, cannot see main accounts in GL journals

$
0
0

Hi all,

We have a requirement to separate some GL accounts into a new account structure to apply an extra financial dimension to these accounts only.  Problem is when I create a new structure to put one new test GL account in (by duplicating the original and editing it), I get the message 'the main account x doesnt exist in the account structures set up for the ledger when I try to do even a simple GL journal using that account.

The GL account has been removed from the original account structures, and both have been activated fine.  This problem exists before I try to add in a new dimension.

We have lots of account structures set up prior to upgrade to R3, haven't set up any new ones since.

Anyone else seen this? 

thanks

Best Practice: Table Extension Framework (SysExtensionSerializer...) in D365FO

$
0
0

In D365FO, is the Table Extension Framework (SysExtensionSerializer…) introduced in AX 2012 still recommended when adding a lot of fields to a standard table?

I see it still exists, and I have it working using only extensions and no overlayering, but is it still necessary to use this when adding say 20 fields to a standard table? If not then why?

DMF Data migration from Extract to staging table Error | Records Import Limit

$
0
0

Hi there,

I have to import around 1.6 million record from extract table to the staging one DIXF. 

When I use DIXF service 3million record get transfered but it doesn't works as soon as it reaches above 3 million it fails with error: 

System.ServiceModel.CommunicationException: An error occurred while receiving the HTTP response to localhost/.../DMFServiceHelper.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetResponse()
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   --- End of inner exception stack trace ---
Server stack trace:
   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ClientReliableChannelBinder`1.RequestClientReliableChannelBinder`1.OnRequest(TRequestChannel channel, Message message, TimeSpan timeout, MaskingMode maskingMode)
   at System.ServiceModel.Channels.ClientReliableChannelBinder`1.Request(Message message, TimeSpan timeout, MaskingMode maskingMode)
   at System.ServiceModel.Channels.ClientReliableChannelBinder`1.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Security.SecuritySessionClientSettings`1.SecurityRequestSessionChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Dynamics.AX.DMF.ServiceProxy.DMFServiceReference.ServiceContract.MigrateEntity(DMFEntity entity)
   at Microsoft.Dynamics.AX.DMF.ServiceProxy.DmfEntityProxy.<>c__DisplayClass1.<MigrateEntity>b__0()
   at Microsoft.Dynamics.AX.DMF.ServiceProxy.DmfEntityProxy.DoWork[T](Func`1 work)'0' 'Site settings' record(s) inserted in staging

Ive placed a new variable named LoadBalance and this will be updated upon recCount above or less than 3million
here the code:
if (recCount < 300000)
        {
            extract.LoadBalance = loadBal;
            recCount++;
        }
        else
        {
            loadBal++;
            extract.LoadBalance = loadBal;
            recCount = 1;
        }

and set this in my query in processing group i.e. 

select * from ssi_extract_sitesettings where loadbalance = 1

Im therefore, thinking if its a record transfer limit or a timeout. Any Idea?

Workflow of timesheets

$
0
0

Hi everyone, 

When i want to create a timesheet workflow, i have to assingn a user or a hierarchy or a participant. I have a problem when i use hierarchy : if i add a condition like emplyee.job title is the director human ressource for example, that means i want just the director of HR to approve  timesheets. When i create a timesheet and submit it the director doesn't find any timesheet to approuve. And the history of the worflow mention an error that the user isn't found.

I have an other problem with participant that under role based i don't find the type of participant, how can i add it?

Thank you very much 


How to differentiate same data source in Query

$
0
0

Hi All,

I have created query like below screen shot.

My main table have Debit account and Accrual account field which have relations with "DimensionAttributevalueCombination" table RecId. I will try to get the debit account recId and accrual account RecId from "DimensionAttributevalueCombination".Please suggest how to get the individual "DimensionAttributevalueCombination" recId's.

Please suggest.

Thanks.

Secure connection with AOS from a different machine

$
0
0

Hey guys,

I am trying to connect my client machine with server using recurring integration service (RIS) - https://github.com/Microsoft/Recurring-Integrations-Scheduler/wiki, so that the service can upload a .dat file (generated by a thumb impression machine) to azure active directory, and then server to use the data management workspace to insert the .dat data into AX table using data entity and staging/mapping mechanisms.

So far, I've added the IP & URL of my AOS server in Windows\System32\drivers\etc\hosts file. After this I was able to connect to my AOS Server using the url https://usnconeboxax1aos.cloud.onebox.dynamics.com. The problem occurs when I try to validate the service connection using RIS tool, it dictates "Could not establish trust relationship for the SSL/TLS secure channel". And even on my browser (Chrome/IE) I can see the site is showing the secure keyword in red font (i.e. insecure/untrusted). 

To solve the above problem, I generated a .pfx certificate from the AOS and then installing it in my machine. Still the problem arises and I have no idea what should I do to deal with this error. The picture shows that both client & server having the same certificate:

  

I have tried connecting RIS through client-server and server-server and I was amazed at the results. They were as: 

If anyone has a valid solution, I am all ears.

D365: Problem with start a unit test in 'Test Explorer'

$
0
0

Hi,

i have the problem, i can´t start any unit test in Test Explorer, it comes the follow message:

Anyone knows this problem and how to fix it?

Initialize table in X++

$
0
0

Hi All,

i want to initialize this hcmpersondetails table . because i want to update its fields. without initialzing, values are loading in table but they are not showing up in form. 

AX fails to connect to Report Server in new Test domain

$
0
0

Hello

We have a 2012 R3 CU on premises AX system that is working normally. We stood up a new TEST environment in a new Active Directory domain called TEST.LOCAL. We restored the production database and everything seems to be working except for one thing. We have AX installed on one server, and the SQL server is on a different machine. For the sake of discussion I'm going to call our production AD domain 'PROD'.

Within the AX GUI, we go to the 'Report Server Configuration' and enter everything to match the report server configuration. Then when we hit the 'Create Folder' button we get a pop up that says "The user or group name 'PROD\AX12.AOS.Service' is not recognized. This should not be, it should be 'TEST\AX12.AOS.Service'. We have looked everywhere we can think of and cannot find where to change it. It must be stored in the database and came over when we brought the database over.

Thanks in advance!!!

Stop a job

$
0
0

How to stop an executing job (a job which is in running/execution state) in Data Management?

Planned orders and CTP

$
0
0

Hi all,

We are using a dynamic master plan for the calculation of the CTP for our service business. We create service/ sales orders on the technicians warehouse and this warehouse is replenished from the central warehouse via transfer orders. When we create a new sales order on the technicians warehouse, CTP is taking into account the latest demand and supply, available stock and leadtimes as expected.

Problems start when we want to adjust the original requested date to an earlier date. Although we have stock in the central warehouse, CTP will not accept an earlier date. Reason for this is that there is a planned order created to transfer the item from central warehouse to technician warehouse based on the orignal date. When we run CTP again on the new requested date it still takes into account this planned order and tells us we can't deliver before the dates in the planned orders. See below for an example:

- Service/ Sales order created for 1x Item A with requested date 25-10-2017

- Stock central warehouse Item A = 1

- Stock technician warehouse Item A = 0

- Transfer lead time 1 day

- CTP can confirm the date and creates a planned order in the dynamic plan to transfer 1x item A on 24-10-2017

- Now custumer calls and needs Item A 1 week earlier --> we go back delete confirmation date and enter a new requested date of 18-10-2017.

- CTP will not confirm this date (although we have free stock) because the planned order is scheduled to arrive 25-10-2017 which is later than the requested date of 18-10-2017 

The only solution I can now think of is to have a bach job on the back ground (running every 5 minutes or so) that is deleting the created planned orders, but this solution feels more like a work around than a nice solution. I don't think CTP should look at the planned orders when calculating dates, is there any other way CTP accepts you to move the requested date to an earlier date?

Kind regards

Jasper


Same Bank check number generated for two vendors in Ax 2009

$
0
0

Hi,

In Ax 2009, Our client is following FIXED check number method. For the Same Bank, System has generated same check number and posted the transactions for two different vendors in different dates. Generally system should not accept the same check number to be posted for two vendors either it is Automatic or Manual method. For reference find the screen shot.

Please suggest on the same.

AR Receipt

$
0
0

I'm looking to define AR Receipt fields/Tables in AX 2012, and I'm trying to understand WriteOffs, Deductions, and Charge Backs. Here is some examples:

"Write Off Example values:
Credit Allowance
Accrual Billback
Penalties
Slotting Allowance"

"Charge Back Example values:
Invalid Deduction
Shortage Damage
Duplicate Deduction
Invalid Discount"

"Deduction Example values:
Credit Allowance
Accrual Billback
Penalties
Slotting Allowance"

AX 2012 R3 Project journals issue with activity field

$
0
0

In 2012 R3 if you have a project that has a WBS that was copied from a quotation, and then create journals it will show activites from both the sales quotation and the project.  Is there a parameter or a hotfix that I'm not finding to resolve this as it creates confusion.

Exchange rate provider is invalid when try to run exchange rate import in a batch job

$
0
0

Hi.

After follow the whitepapers of Microsoft to create a customer exchange rate currency provider, everythings works fine if i run the process manually in General Ledger to import the currency rate.

But the problem appears when i put this task to run into a batch job, the register section give me this error 

Microsoft.Dynamics.Ax.Xpp.ErrorException: Se produjo una excepción de tipo 'Microsoft.Dynamics.Ax.Xpp.ErrorException'.
en Dynamics.Ax.Application.ExchangeRateImportOperation.Import(ExchangeRateImportRequest exchangeRateImportRequest) en ExchangeRateImportOperation.import.xpp:línea 31
en ExchangeRateImportOperation::import(Object , Object[] )
en Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeInstanceCall(Object instance, String MethodName, Object[] parameters)
en Dynamics.Ax.Application.SysOperationServiceController.Runoperation(Boolean _async) en SysOperationServiceController.runOperation.xpp:línea 88
en Dynamics.Ax.Application.SysOperationServiceController.Run() en SysOperationServiceController.run.xpp:línea 27
en Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) en BatchRun.runJobStaticCode.xpp:línea 54
en Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) en BatchRun.runJobStatic.xpp:línea 13
en BatchRun::runJobStatic(Object[] )
en Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
en BatchIL.taskThreadEntry(Object threadArg)

 


I don't have any ideas to see where it's the problem.

Here it's my code to process the exchange rate

public ExchangeRateResponse getExchangeRates(ExchangeRateRequest _exchangeRateRequest)
{
ExchangeRateResponse _response;
ExchangeRateResponseExchangeRate _exchangeRateResponse;
ExchangeRateResponseCurrencyPair _currencyPairResponse;
ExchangeRateRequestCurrencyPair _currencyPairRequest;
ExchangeRateProviderConfig _config;
System.Exception _netExcepn;
ValidFromDate _exchangeDate;
RetailCommonWebAPI _webApi;
RetailWebRequest _request;
RetailWebResponse _responseUrl;
CurrencyExchangeRate _exchangeRate;
Array _resultJson;

int _cycle;
str _requestString;
str _srvUrl;
str _currencies;
str _sourceCurrency;
str _accessToken;
str _result;
str _key;
anytype _current;
container _content;
str _typeCurrency;
real _usddop;
real _usdeur;

_response = ExchangeRateResponse::construct();
_config = ExchangeRateProviderConfig::construct();
_srvUrl = _config.getPropertyValue(this.getProviderId(), #ServiceURL);
_accessToken = _config.getPropertyValue(this.getProviderId(), #AccessKey);
_currencies = _config.getPropertyValue(this.getProviderId(), #ListCurrencies);
_sourceCurrency = _config.getPropertyValue(this.getProviderId(), #BaseCurrency);
_requestString = strFmt(_srvUrl, _accessToken, _currencies, _sourceCurrency);

try
{
_webApi = RetailCommonWebAPI::construct();
_request = RetailWebRequest::newUrl(_requestString);
_responseUrl = _webApi.getResponse(_request);

// Parse the JSON to retrieve the rate.
_resultJson = JsonHelper::parseJson(_responseUrl.parmData());
_result = _resultJson.value(1);
_cycle = strscan(_result, 'USDDOP',1, strlen(_result));
_usddop = str2num(substr(_result,_cycle + 8, 9));
_cycle = strscan(_result, 'USDEUR',1, strlen(_result));
_usdeur = str2num(substr(_result,_cycle + 8, 9));
_exchangeRate = (100 * (_usdeur / _usddop));
_currencyPairRequest = _exchangeRateRequest.getCurrentCurrencyPair();
_currencyPairResponse = ExchangeRateResponseCurrencyPair::construct();

if(_currencyPairRequest == null)
{
_currencyPairRequest = ExchangeRateRequestCurrencyPair::construct();
_currencyPairRequest.parmFromCurrency("DOP");
_currencyPairRequest.parmToCurrency("EUR");
}

_currencyPairResponse.parmFromCurrency(_currencyPairRequest.parmFromCurrency());
_currencyPairResponse.parmToCurrency(_currencyPairRequest.parmToCurrency());
_currencyPairResponse.parmExchangeRateDisplayFactor(ExchangeRateDisplayFactor::Hundred);

_exchangeRateResponse = ExchangeRateResponseExchangeRate::construct();
_exchangeDate = System.DateTime::Parse(DateTimeUtil::toStr(DateTimeUtil::utcNow()),
System.Globalization.CultureInfo::get_CurrentUICulture(),
System.Globalization.DateTimeStyles::AssumeUniversal);
_exchangeRateResponse.parmValidFrom(_exchangeDate);
_exchangeRateResponse.parmExchangeRate(_exchangeRate);
_currencyPairResponse.addExchangeRate(_exchangeRateResponse);
_response.addOrUpdateCurrencyPair(_currencyPairResponse);
}
catch(Exception::CLRError)
{
_netExcepn = CLRInterop::getLastException();
info(_netExcepn.ToString());
}
return _response;
}

The AX version is 2012 R3 CU8

Regards

Eduardo Rotundo

Item Cost Calculation - not calculating Overheads

$
0
0

Hi,

when I am trying to calculate, Item Cost calculation, Overheads are not getting generated.

We use kanban production process, so I selected Production flow as our criteria.

    

Just for verifying purpose, I tried the same item calculation by selecting Production Order as procedure used and Overheads are calculated. What am I missing?

    

Thanks,

Lakshmi

Viewing all 73760 articles
Browse latest View live


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