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

RE: X++ Job Error: Operand types are not compatible with the operator.

$
0
0

Thank you Mr. Andre Arnaud de Calavon, I created lookup for legal entity and I am trying to use the parameter value as selected legal entities. I used the following code

private void lookupLegalEntity(FormStringControl    _legalEntityLookup)

{

   Query                   query;

   QueryBuildDataSource    qbds;

   SysTableLookup          sysTableLookup;

   container cnt;

       query = new Query();

       qbds = query.addDataSource(tableNum(CompanyInfo));

       qbds.addSelectionField(fieldNum(CompanyInfo, DataArea));

       qbds.addOrderByField(fieldNum(CompanyInfo, DataArea));

       SysLookupMultiSelectGrid::lookup(query, _legalEntityLookup, _legalEntityLookup, cnt);

}

Contract Class

[

   DataMemberAttribute("DataArea"),

   AifCollectionTypeAttribute("DataArea", Types::String),

   SysOperationLabelAttribute(literalStr("CompanyInfo"))

]

public List parmCompany(List _DataArea = DataArea)

{

   DataArea = _DataArea;

   return DataArea;

}

DP Class

[SysEntryPointAttribute]

public void processReport()

{

   TaxTrans    TaxTrans;

     dataContract = this.parmDataContract() as TaxListCustomizedContract;

ttsBegin;

delete_from TmpTaxTransaction;

//while   select crossCompany TaxCode from TaxTrans  where TaxTrans.DATAAREAID == ''

while   select crossCompany TaxCode from TaxTrans  where TaxTrans.DATAAREAID == DataArea

   {

       TmpTaxTransaction.TaxAmount=TaxTrans.TaxAmount;

       TmpTaxTransaction.TaxAmount=TaxTrans.TaxBaseAmount;

       TmpTaxTransaction.TaxBaseQty=TaxTrans.TaxBaseQty;

       TmpTaxTransaction.TaxCode=TaxTrans.TaxCode;

       TmpTaxTransaction.TaxInCostPriceMST=TaxTrans.TaxInCostPriceMST;

       TmpTaxTransaction.TaxOrigin=TaxTrans.TaxOrigin;

       TmpTaxTransaction.TransDate=TaxTrans.TransDate;

       TmpTaxTransaction.insert();

   }

   ttsCommit;

}


X++ Job Error: Operand types are not compatible with the operator.

$
0
0

I'm trying to update some records in CustTable. I wanted to change the field MainContactWorker (Employee Responsible). The idea is that there will be some changes made in CustTable - Employee responsible for like 1000 customers and it would not be convenient to do this by hand.
There is a relation between CustTable and HcmWorker: CustTable.MainContactWorker == HcmWorker.RecId. And I don't really know if this is a problem. Both fields' types are the same: "int64", but the EDTs are different. However, I wrote this simple (and obviously - incorrect) job and received the following error:
JOB's code:

Static void UpdateMCW(Args _args)
{
CustTable ct;
;
While select forupdate ct where ct.MainContactWorker=="5637178326"

{
If(ct)
{
Ttsbegin;

Ct.MainContactWorker=“5637172326”;
Ct.update();

Ttscommit;
}
}
}




Error:
Description: Operand types are not compatible with the operator.
Path: \Jobs\UpdateMCW
Line: 5
Diagnostic ID: Err:1


The value given for the where clause is underlined - "5637178326".
So my question is - how can I fix this error and get the records updated?

RE: What is the basic concept of Financial Dimensions? Please share some useful links.!

RE: Budget and po pr

RE: Operand types are not compatible with the operator

$
0
0

Thank you JL Aguilera,

How can I use the parameter value for DATAAREAID. I am using lookup class for dataarea from companyinfo table and the selected texts I need to pass the query .

RE: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly.

$
0
0

Hi CB,

Looks like your meta are not match.

Regards,

Sci

RE: Using WCF Client got error !!!

$
0
0

Hi Lindsey,

Check your credentials in SQL SERVER.  Go To Properties->Security->Check the SQL SERVER and Windows Authentication Mode.

Or else try restart your SERVER .

Regards,

Sci

RE: Update ModifiedDateTime when changes are made by SQL requests

$
0
0

Hi,

I think trigger should be the only way to update based on the request in SQL side.


RE: Number Sequence Error while importing

$
0
0

Hi Manivannan,

What's the different between the records which were inserted successfully and the 6 records which were failed to be inserted?

Number Sequence Error while importing

$
0
0

Hi All,

While trying to import number sequence am getting the following error,

"Results. Matching record for the read only data source 'NumberSequenceDatatypeEntity' does not exist"

The file contains 851 records and for 6 records the above error is thrown.

So, i tried importing the 'NumberSequenceDatatypeEntity' for the remaining 6 records. But, its not allowing me to insert the record.

Getting the below error,

Results. insert not allowed for field 'Element name(Name)'
Results. Validations failed

Any idea on how to over come this issue?

Regards,

Manivannan M

RE: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly.

$
0
0

Hi Sci,

thanks for ur response.

i want to know is this error from server side or client side ?.

and which type of response it is expecting ?.

RE: Add a method to an standard entity

$
0
0

Ok I answer to myself: You cannot extend a data entity for adding new methods. What you can do if you don't want overlaying standard data entities is to duplicate an existing one and customize it adding the new methods that you need.

In this case you duplicate the data entity and add the defaultCtQuery() method.

Add a method to an standard entity

$
0
0

Hello,

I want to add a defaultCTQuery() method to an standard data entity with the purpose to enable change tracking with custom query. How could I do it without overlaying it? I tried creating an extension class with an static method but when I try to enable change tracking with custom query I receive the error message "Custom query is not present on entity xxxxxxxxxx".

RE: How to setup User ID for default warehouse

$
0
0

Hi Guy Terry ,

Many thanks for your supporting.

I didn't tick "Use warehouse management process' before, therefore I can't see Warehouse list at Default warehouse.

However, for existent warehouse, I can't enable and tick  "Use warehouse management process'.

I test a case by my idea

1. Create a new warehouse and setup "Use warehouse management process'

2. Apply user ID can use Warehouse. For example: WH1

3. Create a new Purchase order and Receipt, I can choose any warehouse that is existent in system (WH1, WH2, ...WH5). This is not matching with my purpose. I need User ID can view only WH1

Pls help me this case,

Thanks in advance

Van Nguyen

How to setup User ID for default warehouse

$
0
0

Hi all, 

 I have 5 warehouses, there are: WH1, WH2, WH3, WH4 and WH5. 

I need to setup User ID who can view or create PO, SO or inventory transaction from WH1, WH2

I find more information in Warehouse management module and I can't setup because the check list is blank 

Anyone knows this situation and give me some guides, 

Thanks in advance

Van Nguyen


Paid Invoices within Particular Period

$
0
0

Hi,

I want to to get the paid Customer Invoices within a specific period with the Invoice Date & The Payment Date, Is there any report I can depend on?

RE: X++ Job Error: Operand types are not compatible with the operator.

$
0
0

Your DataArea variable seems to be of type List. You can't compare a list with a string.

Why is it a List? If you change it to DataAreaId your code will work.

Or, if you need to be able to give a list of company ids as a parameter, you need to change your processReport method. Iterate the List, take one DataAreaId at a time, and run your select statement once for each. Or, for better performance, change your select statement to a query (with Query object) and add all the DataAreaIds as ranges to that query.

RE: Using WCF Client got error !!!

$
0
0

Thank ==! it's stay on "SQL Server and authentication mode already ":< nothing happen 

RE: Inventory movement transaction showing two line with different cost price after posting

$
0
0

Could you please share the screenshots of these inventory transactions with inventory dimensions displayed? We cannot see what dimensions were issued.  I would also ask another screenshot with all receipt transactions with those dimensions.

RE: Budget and po pr

$
0
0

I checked the it the link when i open the account distribution the po link with stock account not expense but  when movement journal posted budget amount will be deducted but po not deducted

Viewing all 175888 articles
Browse latest View live


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