cancel
Showing results for 
Search instead for 
Did you mean: 
alex6
Level 1

Suddenly I can't create a new PO. I keep getting "You must select an account for this transaction." error. Nothing's changed and suddenly this error happens.

 
3 Comments
JamesDuanT
Moderator

Suddenly I can't create a new PO. I keep getting "You must select an account for this transaction." error. Nothing's changed and suddenly this error happens.

I appreciate you for bringing your concern to our attention, Alex.

 

This error can occur if you have entered an amount and doesn't have an associated ACCOUNT or PRODUCT/SERVICE. Make sure all the line items on your purchase order.

 

We can also do browser troubleshooting steps to get rid of any cache-related issues. 

 

We can use a private browser since it doesn't store cache files. Using a different supportive browser can be a good alternative, too. Each browser stores different sets of cache files.

 

Then, try logging in to your account and creating a purchase order. If you can create the purchase order successfully, we can clear the cache storage of your regular browser.

 

Otherwise, I'd recommend contacting our QuickBooks Customer Care Team. They'll be able to investigate and do further troubleshooting steps about this.

 

Feel free to leave a reply if you have other concerns. 

Capture.JPG

 

deborak
Level 1

Suddenly I can't create a new PO. I keep getting "You must select an account for this transaction." error. Nothing's changed and suddenly this error happens.

am so extreemly stuck. i cant create a purchase order using c# error "you must create an account to make this transaction. please help me. this is my code.

```

public ActionResult Received()
{
try
{
var RealmId = HttpContext.Session.GetString("realmId");
var Access_token = HttpContext.Session.GetString("claims");
OAuth2RequestValidator oauthValidator = new OAuth2RequestValidator(Access_token);
// Create a ServiceContext with Auth tokens and realmId
ServiceContext serviceContext = new ServiceContext(RealmId, IntuitServicesType.QBO, oauthValidator);
serviceContext.IppConfiguration.MinorVersion.Qbo = "23";
serviceContext.IppConfiguration.BaseUrl.Qbo = "https://sandbox-quickbooks.api.intuit.com";

PurchaseOrder ObjPurchaseOrder = new PurchaseOrder();

//Quickbooks online Accounts Id of type Accounts Payable
// We can give Accounts Name insted of Accounts Id, if we give Accounts Id and Accounts Name both then Accounts name will be ignore.
//ObjPurchaseOrder.APAccountRef.name = "Accounts Payable (A/P)";//Quickbooks online Accounts Name

ObjPurchaseOrder.VendorRef = new ReferenceType();
ObjPurchaseOrder.VendorRef.Value = "59";//Quickbooks online Vendor Id
// We can give Vendor Name insted of Vendor Id, if we give Vendor Id and Vendor Name both then Vendor name will be ignore.
//ObjPurchaseOrder.VendorRef.name = "Tabish Vendor";//Quickbooks online Vendor Name

ObjPurchaseOrder.APAccountRef = new ReferenceType();
ObjPurchaseOrder.APAccountRef.Value = "5";
//ObjPurchaseOrder.APAccountRef.name = "Job Expenses";
List<Line> LineList = new List<Line>();

Line objLine = new Line();
objLine.DetailTypeSpecified = true;
objLine.DetailType = LineDetailTypeEnum.ItemBasedExpenseLineDetail;

objLine.AmountSpecified = true;
objLine.Amount = 100;

ItemBasedExpenseLineDetail itemLineDetail = new ItemBasedExpenseLineDetail();
itemLineDetail.ItemRef = new ReferenceType();
itemLineDetail.ItemRef.Value = "1"; //Quickbooks online Item Id
// We can give Item Name insted of Item Id, if we give Item Id and Item Name both then Item name will be ignore.
//itemLineDetail.ItemRef.name = "Vision Keyboard Mouse Set"; //Quickbooks online Item name

itemLineDetail.CustomerRef = new ReferenceType();
itemLineDetail.CustomerRef.Value = "60"; //Quickbooks online Customer Id
// We can give Customer Name insted of Customer Id, if we give Customer Id and Customer Name both then Customer name will be ignore.
//itemLineDetail.CustomerRef.name = "Tabish Rangrej"; //Quickbooks online Customer Name

itemLineDetail.QtySpecified = true;
itemLineDetail.Qty = 1;

objLine.AnyIntuitObject = itemLineDetail;

LineList.Add(objLine);

ObjPurchaseOrder.Line = LineList.ToArray();

DataService dataService = new DataService(serviceContext);

if (ModelState.IsValid)
{
PurchaseOrder PurchaseOrderAdd = dataService.Add(ObjPurchaseOrder);

if (PurchaseOrderAdd != null && !string.IsNullOrEmpty(PurchaseOrderAdd.Id))
{
//you can write Database code here
ViewBag.IsSuccess = true;
}
}
return View();
}
catch (IdsException ex)
{
ViewBag.IsSuccess = false;
if (ex.InnerException != null && !string.IsNullOrEmpty(ex.InnerException.Message))
{
ViewBag.Message = ex.InnerException.Message;
}
else if (!string.IsNullOrEmpty(ex.Message))
{
ViewBag.Message = ex.Message;
}
else
{
ViewBag.Message = "Something went wrong,IdsException occurs";
}
return View();
}
catch (Exception ex)
{
ViewBag.IsSuccess = false;
if (ex.InnerException != null && !string.IsNullOrEmpty(ex.InnerException.Message))
{
ViewBag.Message = ex.InnerException.Message;
}
else if (!string.IsNullOrEmpty(ex.Message))
{
ViewBag.Message = ex.Message;
}
else
{
ViewBag.Message = "Something went wrong,Exception occurs";
}
return View();
}
}

AlexV
QuickBooks Team

Suddenly I can't create a new PO. I keep getting "You must select an account for this transaction." error. Nothing's changed and suddenly this error happens.

Thanks for joining here, deborak.

 

Based on your post, it seems that you're trying to integrate an application to QuickBooks Online. It's best you join the Intuit Developer Community. They can guide and help you on how to fix the issue you're experiencing.

 

Leave a message below if you need anything else. Take care!

Need to get in touch?

Contact us
Sign in for the best experience
Ask questions, get answers, and join our large community of QuickBooks users.
Sign In / Sign Up