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

Create a Product Category in AX 2012 r2 using C#

$
0
0

Hi,

I am working on creating the category in AX 2012 r2 using WCF service. I had read the details of the category in the product category by using the "EcoResCategoryDocumentService"(EcoResCategory Table). I had updated the service as the "CRUD" but I couldn't create the new category in AX, because I don't know how to access "EcoResCategoryHierarchy" Table.

Can you help me?


Fixed Asset Through Po (AX 2012 FP)

$
0
0
Dear All I face below problem when I create fixed asset through Po 1) I create item in inventory Name Fixed Asset and attached value model weighted Average 2) if I generate purchase order using item Fixed asset Quantity 10 and price is 10$ there are three behavior In fixed Asset Acquire fixed asset amount 100$ that's right but the other hand in inventory module its sold only two quantity with 21$ and remain 8 are in hand with cost 79$ basically in inventory module its also sold 10 Quantity with the same cost of purchase. how I correct this please guide . I am using ax 2012 fp with cu4

How do I resize a grid in a Form (AX 2012 R2)

$
0
0

I have a grid that is not wide enough to show all the data.  When I try clicking on it to expand the size, it doesn't expand.  Width and Height are set to Auto.  I thought that would allow me to change the size.  I don't want to have to hard set the width I want.  What am I missing?

AX2012 R3 Demo VPC

$
0
0

Hi,

Does anybody know when Microsoft will release a AX2012 R3 demo solution package / VPC for download on partnersource?

Ludwig

MRP Errors Ax 2012 R2 CU6

$
0
0

Hi All

We are running the MRP in a batch, but are recieving the following errors:

Infolog for job Master scheduling (5637180577)\Infolog for task Master scheduling (5637190327)\Master scheduling Item coverage is updated.

Error Infolog for job Master scheduling (5637180577)\Infolog for task Master scheduling (5637190327)\Master scheduling Unhandled exception

Warning Infolog for job Master scheduling (5637180577)\Infolog for task Master scheduling (5637190327)\Master scheduling Item coverage is partly updated.

Error Infolog for job Master scheduling (5637180577)\Infolog for task Master scheduling (5637190327)\Master scheduling Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.

  at Dynamics.Ax.Application.ReqCalcScheduleItemTable.Run() in ReqCalcScheduleItemTable.run.xpp:line 23

  at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 54

  at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 13

  at BatchRun::runJobStatic(Object[] )

  at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

  at BatchIL.taskThreadEntry(Object threadArg)

Error Infolog for job Master scheduling (5637180577)\Infolog for task Master scheduling (5637190327) Cannot edit a record in Net requirements (ReqTrans).

An update conflict occurred due to another user process deleting the record or changing one or more fields in the record.

Error Infolog for job Master scheduling (5637180577)\Infolog for task Master scheduling (5637190327) Cannot edit a record in Net requirements (ReqTrans).

An update conflict occurred due to another user process deleting the record or changing one or more fields in the record.

Error Infolog for job Master scheduling (5637180577)\Infolog for task Master scheduling (5637190327) Cannot edit a record in Net requirements (ReqTrans).

An update conflict occurred due to another user process deleting the record or changing one or more fields in the record.

Error Infolog for job Master scheduling (5637180577)\Infolog for task Master scheduling (5637190327) Cannot edit a record in Net requirements (ReqTrans).

An update conflict occurred due to another user process deleting the record or changing one or more fields in the record.

Error Infolog for job Master scheduling (5637180577)\Infolog for task Master scheduling (5637190327) Cannot edit a record in Net requirements (ReqTrans).

An update conflict occurred due to another user process deleting the record or changing one or more fields in the record.

Error Infolog for job Master scheduling (5637180577)\Infolog for task Master scheduling (5637190327) Cannot edit a record in Net requirements (ReqTrans).

An update conflict occurred due to another user process deleting the record or changing one or more fields in the record.

We are also receiving the above error (An update conflict occurred) for certain items when trying to update the net requirements manually.

It does seem that the master plan was updated, but we cannot trace the error.

Anyone experienced the same issues?

Thanks

Eddie

Keep the form opened

$
0
0

Hello

Is it possible to keep the form opened when the OK command button is clicked?

AX 2012 R3 Contoso VM

$
0
0

Hi Everyone.

According to the Microsoft Blog and launch the R3 Contoso Virtual Machine should be available today.

Has anybody been able to find it on Customer Source? If so please can you share the URL.

AX 2012 R3 Virtual Machine

$
0
0

Does anyone know if it will be available to download from Partnersource?. I know it is avaliable from Azure but we would like to run it in our servers.

Thanks!!


Calculation error of Master scheduling: "Req. quantity" by Inventory multiple

$
0
0

I have set "Inventory Multiple" of the item at "Default order setting" form. See image.

 

And there are 6 sales order of the item.

 

Then I run "Master scheduling" and review "Planned order" and "Net requirement" of the Item.

Net requirement

I think master scheduling does not calculate the "Req. quantity" correctly.

The value should be the multiple of 24 as "Inventory Multiple".

As this picture.

 

Is anyone found this issue? And how to correct it?

 

 

 

 

 

 

Filter In Forms

$
0
0

                         

 

                                                                                                             

Loop/Iterate through a MS Word document

$
0
0

Hi

I want to achieve following in AX 2009.

 

Input .doc/.docx file

while(endOfFile)

{

    getWord;

    // for this particular WORD do something; if certain condition is met. 

   nextWord;

}

 

I have started from following reference.

http://learnax.blogspot.it/2011/01/x-code-to-read-ms-office-word-document.html.

There is a lot of help available for VBA and C#, but I am unable to implement using it X++.

Can't get response from ftp

$
0
0

Hi,

I'm trying to read a file from ftp. I'm using this example.

static void Job1(Args _args)
{
    object ftpo;
    System.Net.FtpWebRequest request;
    System.IO.StreamReader reader;
    System.Net.NetworkCredential credential;
    System.Net.FtpWebResponse response;
    System.String text;
    XmlDocument xmldoc;
    ;

    ftpo = System.Net.WebRequest::Create("ftp://ftp.testserver.com/test.txt");
    request = ftpo;
    credential = new System.Net.NetworkCredential("user","psw");
    request.set_Credentials(credential);

    response = request.GetResponse(); // this line fails, I get no error or any kind of message, debugger just simply exists.
    reader = new System.IO.StreamReader(response.GetResponseStream());
    text = reader.ReadToEnd();
    info(text);
}

What could cause this?

SystemDateSet not working on date insert (UnitTest)

$
0
0

Hi,

we're using the SystemDateSet function in unit tests to simulate earlier postings. I've recognized that even if I changed the date to yesterday, the createdDateTime of the record is of today. I even tried the DateTime-pendant using DateTimeUtil::setSystemDateTime but the insert just ignores it. Did anyone see this happen or can explain or is this a bug?

Thanks

Andi

ERROR : "Object 'CLRObject' could not be created" in AX 2012 r2

$
0
0

We have ax 2012 server in which we have Database, AOS and client installed. We have Windows 2008 r2 standard OS installed on server. We later realize that we need ram more than 32Gb and so for this we have to update OS from Standard to  Enterprise edition.

After updating we were facing the issue while restarting the AOS which was later resolved by editing the registry.

I am now able to start AOS and ax client however I am getting an error "Object 'CLRObject' could not be created" while compiling, generate full cil or opening any menu item.

I tried the following thing so far :

Full CIL

Full Compile

Restart AOS

But getting error on clicking every menu item or compile etc.

Cannot establish AOS connection (CROSS Domain)

$
0
0

I have AOS Server in a different domain A and the Ax client is in different
domain B. Both domains are trusted(Oneway selective authentication)

In the Client configuration I tried giving the FQDN( full qualified domain
name and also IP address as server name) and the TCP/IP port is also correct.
 
I tried to ping the server(Domain A) from Client ( domain B) and using
Telnet command client whether the TCP\IP ports are opening everything is
perfect.
 
But if i open the Ax32.exe config client it says " Connection to the object
server could not be established".

I tried thru DNS reslolution Lm host but still getting the same error.
 
but if i change the AOS server to Domain B where client also in same Domain
B. The Axapta application opens.

How Axapta works in untrusted and Trusted Domains.Clarify

Give me also the resolution


User Credentials for AX

$
0
0

Hi,

                I would like to ask on how AX can grant User Credentials to other web application. I created an AIF Service in AX used to Create a Sales Order, tested it in the WCF Test Client, and it worked perfectly fine. I also managed to integrate it with our current system using a localhost. However, when I deployed my project and try to generate a Sales Order from our system, I received an error “There was an error creating Sales Order Number. Error: Cannot find the X.509 certificate using the following search criteria: StoreName 'TrustedPeople', StoreLocation 'CurrentUser', FindType 'FindBySubjectName', FindValue 'company.com.'. “

 

Thank you,

                Eidrian Dale E. Naguit

logging Class instantiation in AX4

$
0
0

Good Morning

can I capture a record of when each class get used in AX.

It would be really handy to know which classes we are using and which we don't

any idea's

Thanks

David

Interaction between Webservice and AX 2012 X++

$
0
0

Hi All,

Thanks in advance.

I need to call a web service method from X++ code, so to do that, I have created a Visual studio project and added the reference to that specific WSDL path (web service path). 

After the above step, I added VS project to AOT, once it's added I accessed the classes and methods which are present in the WSDL path (Web service path).

When I am tring to access a method, I getting the following exception, can any one please guide me how can I resolve this.

Note: I don't have the web service project's solution, so I can't do any thing with web service.

Is there any way to find whether this issue is related to "Webservice" or from "my code"

Below Highlighted details are of Exception Details,

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: There was an error reflecting 'return'. ---> System.InvalidOperationException: The top XML element 'return' from namespace '' references distinct types System.Boolean and System.String[]. Use XML attributes to specify another XML name or namespace for the element or types.

   at System.Xml.Serialization.XmlReflectionImporter.ReconcileAccessor(Accessor accessor, NameTable accessors)

   at System.Xml.Serialization.XmlReflectionImporter.ReconcileLocalAccessor(ElementAccessor accessor, String ns)

   at System.Xml.Serialization.XmlReflectionImporter.ImportAccessorMapping(MemberMapping accessor, FieldModel model, XmlAttributes a, String ns, Type choiceIdentifierType, Boolean rpc, Boolean openModel, RecursionLimiter limiter)

   at System.Xml.Serialization.XmlReflectionImporter.ImportMemberMapping(XmlReflectionMember xmlReflectionMember, String ns, XmlReflectionMember[] xmlReflectionMembers, Boolean rpc, Boolean openModel, RecursionLimiter limiter)

   at System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(XmlReflectionMember[] xmlReflectionMembers, String ns, Boolean hasWrapperElement, Boolean rpc, Boolean openModel, RecursionLimiter limiter)

   --- End of inner exception stack trace ---

   at System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(XmlReflectionMember[] xmlReflectionMembers, String ns, Boolean hasWrapperElement, Boolean rpc, Boolean openModel, RecursionLimiter limiter)

   at System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(String elementName, String ns, XmlReflectionMember[] members, Boolean hasWrapperElement, Boolean rpc, Boolean openModel, XmlMappingAccess access)

   at System.ServiceModel.Description.XmlSerializerOperationBehavior.Reflector.XmlSerializerImporter.ImportMembersMapping(XmlName elementName, String ns, XmlReflectionMember[] members, Boolean hasWrapperElement, Boolean rpc, Boolean isEncoded, String mappingKey)

   at System.ServiceModel.Description.XmlSerializerOperationBehavior.Reflector.OperationReflector.ImportMembersMapping(String elementName, String ns, XmlReflectionMember[] members, Boolean hasWrapperElement, Boolean rpc, String mappingKey)

   at System.ServiceModel.Description.XmlSerializerOperationBehavior.Reflector.OperationReflector.LoadBodyMapping(MessageDescription message, String mappingKey, MessagePartDescriptionCollection& rpcEncodedTypedMessageBodyParts)

   at System.ServiceModel.Description.XmlSerializerOperationBehavior.Reflector.OperationReflector.CreateMessageInfo(MessageDescription message, String key)

   at System.ServiceModel.Description.XmlSerializerOperationBehavior.Reflector.OperationReflector.EnsureMessageInfos()

   at System.ServiceModel.Description.XmlSerializerOperationBehavior.Reflector.EnsureMessageInfos()

   at System.ServiceModel.Description.XmlSerializerOperationBehavior.CreateFormatter()

   at System.ServiceModel.Description.XmlSerializerOperationBehavior.System.ServiceModel.Description.IOperationBehavior.ApplyClientBehavior(OperationDescription description, ClientOperation proxy)

   at System.ServiceModel.Description.DispatcherBuilder.BindOperations(ContractDescription contract, ClientRuntime proxy, DispatchRuntime dispatch)

   at System.ServiceModel.Description.DispatcherBuilder.ApplyClientBehavior(ServiceEndpoint serviceEndpoint, ClientRuntime clientRuntime)

   at System.ServiceModel.Description.DispatcherBuilder.BuildProxyBehavior(ServiceEndpoint serviceEndpoint, BindingParameterCollection& parameters)

   at System.ServiceModel.Channels.ServiceChannelFactory.BuildChannelFactory(ServiceEndpoint serviceEndpoint, Boolean useActiveAutoClose)

   at System.ServiceModel.ChannelFactory.CreateFactory()

   at System.ServiceModel.ChannelFactory.OnOpening()

   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

   at System.ServiceModel.ChannelFactory.EnsureOpened()

   at System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)

   at System.ServiceModel.ChannelFactory`1.CreateChannel()

   at System.ServiceModel.ClientBase`1.CreateChannel()

   at System.ServiceModel.ClientBase`1.CreateChannelInternal()

   at System.ServiceModel.ClientBase`1.get_Channel()

   at CTS_EDIConnection.EDI_ServiceReference.UEBIBrokerInterfacePortTypeClient.TEBIBrokerInterface_PublishWS(String aClientId, String aUser, String aPassword, String aDomain, String aApplication, String aSchema, String aDestination, String aReference, String aMessage, Int32 aMessageFormat, Int32 aDuplicates)

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeImpl.InvokeClrInstanceMethod(ClrBridgeImpl* , ObjectWrapper* objectWrapper, Char* pszMethodName, Int32 argsLength, ObjectWrapper** arguments, Boolean* argsAreByRef, Boolean* isException)

All replies are appriciated.

Thanks and Regards,

Deepak M.

Dynamics AX 2009 Upgrade Error

$
0
0

I am in the process of upgrading Dynamics AX 2009 to Dynamics AX 2012 R2. When I run the live preprocessing scripts, i get the error that a certain company does not exist. What is causing the error, and how do i fix it? I have included the stack trace in case it is needed:

Stack trace: The company amd does not exist.

(S)\Classes\DirUpgrade\getNewLocationId - line 20

(S)\Classes\LogisticsElectronicAddressHelper\createContactInfo - line 24

(S)\Classes\LogisticsElectronicAddressHelper\createPartyContactInfoByRole - line 82

(S)\Classes\LogisticsElectronicAddressHelper\createPartyContactInfo - line 22

(S)\Classes\LogisticsElectronicAddressHelper\createElectronicAddress - line 5

(S)\Classes\LogisticsElectronicAddressHelper\createMapContactInfo - line 16

(S)\Classes\ReleaseUpdateTransformDB50_Basic\updatecustTablePreProcessing - line 59

(S)\Classes\DictClass\callObject

(S)\Classes\ReleaseUpdateTransformDB\invokeObjectMethod - line 28

(S)\Classes\ReleaseUpdateTransformDB\runTransformation - line 30

(S)\Classes\ReleaseUpdateTransformExecute\run - line 24

(S)\Classes\BatchRun\runJobStatic - line 64

I have tried to trace the error using the stack trace without any success. Can anyone please help? Thanks

How to fix the issue of Retail CU7

$
0
0

There is an issue occurred when Retail POS starting after I upgrading CU7.

Does anyone know how to fix it? thanks.

Problem Event Name: APPCRASH

 Application Name: POS.exe

 Application Version: 6.2.1000.4051

 Application Timestamp: 5272b783

 Fault Module Name: KERNELBASE.dll

 Fault Module Version: 6.2.9200.16451

 Fault Module Timestamp: 50988950

 Exception Code: c000041d

 Exception Offset: 00014b32

 OS Version: 6.2.9200.2.0.0.144.80

 Locale ID: 1033

 Additional Information 1: 7686

 Additional Information 2: 76860ee2b4e7aeb74e166dd947cd713b

 Additional Information 3: 8d52

 Additional Information 4: 8d52ee61e4706728105d383a1ffad6af

Viewing all 72043 articles
Browse latest View live


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