Printing barcode in Acumatica reports - acumatica

I am trying to modify the picklist report and add a barcode, which uses the shipping number.
If i select Barcode and table field in the value propery. I am getting error object reference is not set to instance of an object.
How to print Barcode using table filed value?
If I set Source as Barcode then I am getting the following error
Error: Object reference not set to an instance of an object. Send
Raised At: 10/27/2016 12:34:57 PM Screen: SO.64.40.00
Details:
10/27/2016 12:34:57 PM Error:
Object reference not set to an instance of an object.
If I change it to database, there is no error but it is not displaying barcode

I am just posting the answer as given by Acumatica Support, so that this could help someone in the future.
Use Barcode type: Code128
Use MimeType : image/bmp
Source : Barcode
In the value field, ensure "=" is not used.
Regards
Nandakumar S

Related

Updating fiield in PostgreSQL table using .update() not working in django

I've been trying to update the invo_payment_method value from a table called Invoices. This is the code that I currently have to try to achieve this:
if total_payments_for_invoice.all().count() == 1:
invoice_object = Invoice.objects.get(slug=slug)
invoice_object.invo_payment_method = request.POST.get('payment_method')
invoice_object.save()
So what I'm trying to do is if it's the first payment for the invoice I want to get invoice_object which has the slug of the invoice that just got a payment and update the invo_payment_method field in the table and save the changes. But that's not working. I also tried doing the following:
if total_payments_for_invoice.all().count() == 1:
Invoice.objects.filter(slug=slug).update(
invo_payment_method=request.POST.get('payment_method'))
And it's not working either. After that I tried adding a the following to the code above:
if total_payments_for_invoice.all().count() == 1:
Invoice.objects.filter(slug=slug).update(
invo_payment_method=request.POST.get('payment_method')).save()
And this one actually updated the value in the database, but it made the webpage crash because of the following exception: AttributeError: 'int' object has no attribute 'save'. In case more information is needed, if I print the value of Invoice.objects.get(slug=slug) I get the following: INV-bb1c 21. And if I print the value of Invoice.objects.filter(slug=slug) I get the following: <QuerySet [<Invoice: INV-bb1c 21>]>. In both cases I'm getting the invoice number which is INV-bb1c and the invoice pid which is 21. Please see image attached of how the Invoice table looks like. Any help would be greatly appreciated. To clarify: invo_payment_method is initially null in the database and request.POST.get('payment_method') returns a string of the payment method used.

While querying for custom types file in cmis getting error

First I was trying with this code to get all properties of custom type file in my repository. Object Id is of type mcl_engineer. Unable to read custom types file and getting exception.
CmisObject objectt = session.getObject(session.createObjectId("09027bd480031032"));
Document document = (Document)objectt;
System.out.println(document.getProperties())
While querying also getting exception.
SELECT *
FROM cmis:document
WHERE cmis:objectId = '09027bd480031032'
While querying getting this error
CMIS Exception: runtime Internal Server Error
Error Content: Status code: 500[runtime] Failed to get property info for type: mcl_engineer [E_CANT_INIT_PROPERTY_INFO_CACHE] Cant initialize PropertyInfoCache: mcl_engineer category. You must provide a table owner name qualification on your reference to table mcl_category. [DM_QUERY_E_REG_TABLE_QUAL] You must provide a table owner name qualification on your reference to table mcl_category. (CMIS with REST-Atom binding)
Only getting error for custom type file not for default one. So please help me out.
Thanks in advance.

Active Reports chartcontrol giving error

I have created a report in Active Reports (.rpx file) which contains a chartcontrol 'ChartControl1'.
Report Datasource is List which contains 'ItemLabel' and 'ItemValue' fields
Script file contains following line of code.
public void ActiveReport_ReportStart()
{
this.ChartControl1.DataSource = rpt.DataSource;
this.ChartControl1.Series[0].ValueMemberX = "ItemLabel";
this.ChartControl1.Series[0].ValueMembersY = "ItemValue";
}
Apparently i am getting an error which says
"DataSource of type System.String is not supported .Parameter name:
genericDataSource"
and this line is causing the problem.
this.ChartControl1.Series[0].ValueMembersY = "ItemValue";
because if i remove this line , there is no error , but report would not render.
I have read that this error is happening due to incorrect binding , but it is not the case here as i have doublechecked it.
What could be the issue?
This error is usually observed when a string value is assigned to the ValueMemebersY property of chart series, where the string value is not a valid field/column name in the table that is bound to the chart as it’s datasource.
Please refer to the walkthrough which describes how to create an unbound bar chart at runtime with SectionReports (Rpx as well as code based)
You can additionally refer the charting sample that is shipped along with ActiveReports.
You may also refer to the following forum post wherein a sample has been attached showing a similar implementation:
http://our.componentone.com/groups/topic/chart-control-throwing-a-binding-error/
Regards,
Mohita
NewtonCode
what version of product are you using? version 7 or 8? Its a bug. we are going to fix it.

BizTalk: Getting error in Promoted Property

I am getting below error when I run the Orchestration and try to assign value to a promoted property by reading the value of another promoted property.
Error in Suspended Orchestration:
Inner exception: There is no value associated with the property BankProcesses.Schemas.Internal_ID' in the message.
Detail:
I have 2 XSD schemas, 1 for calling a stored procedure and reading its response and another to write it into a flat file. The internal ID returned in the response from SP needs to be passed to a node in another XSD schema to write to a flat file format.
I have promoted an element from the response schema and also promoted an element from the schema to write to flat file. I am assigning the value to promoted propeties as below:
strInternalId = msgCallHeaderSP_Response(BankProcesses.Schemas.Internal_ID);
msgCallSP(BankProcesses.Schemas.Header_Internal_ID) = strInternalId;
But when I run the orchestration I get the error as mentioned above. I have checked the reponse from stored procedure and the reponse XML does contain some value but I am unable to assign that value to another schema. Please advice
Thanks,
Mayur
You can use exists to check the existence of property.
if(BankProcesses.Schemas.Internal_ID exists msgCallHeaderSP_Response)
{
strInternalId = msgCallHeaderSP_Response(BankProcesses.Schemas.Internal_ID);
msgCallSP(BankProcesses.Schemas.Header_Internal_ID) = strInternalId;
}
One scenario that might cause this error is that there is no Header_Internal_ID element in the message you are trying to modify. Can you inspect the message before modification to ensure that there is an element whose value should be changed - drop the message out to a file location, maybe.
If this is the case, then just ensure that you create this element when you instantiate you r message for the first time - even if you initially set it to an empty element.
HTH
To check if the property exists, you can use this syntax:
BMWFS.LS.BizTalk.CFS.BankProcesses.Schemas.Internal_ID exists msgCallHeaderSP_Response
However, if the case is that the source field would always be there, you have to work backwards to find out why the Property is not appearing on the Context.
If it's coming from a Port, is the message passign through an XmlDisassembler Component? If it's coming from another Orchestration, are you actually setting the Property?
The easiest way to look at the Context is to route the Message, msgCallHeaderSP_Response, to a Stopped Send Port. You can then view the Context in BizTalk Administrator.

Sharepoint Business Data List Behavior

This is a multi faceted question, but any help is appreciated
Background:
I have a Application Definition with 6 entities using SSO
The database back end is Firebird through ODBC
All the data is coming from stored procedures
Questions:
1 While trying to implement one or any of the entities from the BDC in a Business Data List web part I get the following error: "An error occurred while retrieving data from . Administrators, see the server log for more information." It only happens when I have fields that are null, in this instance a field that was declared as a string.
2.When I check the logs, it's a System.OverFlowException.
3.If I change it so the output from the procedure is a blank string, I suddenly get "The title property of entity is set to an invalid value"
4.The error from the logs after changing to a blank string is "Exception handed to HandleXslException.HandleException System.ArgumentException: '.', hexadecimal value 0x00, is an invalid character"
What gives? It worked last night without issue until a record appeared that had a null value in one of the string field. Now, even replacing the null value with something generic is still giving me the title property invalid error.
Most puzzling: If I change the query so that the rows with what would be a null or blank string aren't in the query, the error goes away. But, if I add them back and replace the null string with anything, the error comes back. What the !##$? How does it know I've replaced a null value with something else before the records are returned to the XmlReader?
I've run into this exact scenario and it brought back some angry/confused moments. As you said in your comment:
I set the encoding to be unicode on all varchar and char outputs and it fixed it. The lack of encoding caused there to be null characters (not a null record, but one null character) for that column and Sharepoint could not parse the field. Changed the encoding, and everything works.
It took me a couple days of swearing at the computer before we took it down to the metal and discovered the unicode issue. I don't even know when it changed but we realized the same thing and all was right with the world again.

Resources