I am curious if there is a solution for this problem: I would like to have a "batch number" added to all rows that match one another across the selected fields. For example, based on the fields selected or not selected, a column would be created with a grouping of sorts.
Ideally it may also add an additional column that indicates if the record is a "Duplicate" or "Not a Duplicate", but I figure I could work through that once the batch number is in place. Let me know if I can clarify the ask in any way. Thank you very much, and have a great day!
So, I'm not able to work with this record because of the error, I checked this article -record-data-source.html and it seems like I have to modify the batch number rule but I'm not sure how to do it (like what I have to put in there) or if that is even the issue. My response gives a 632 record only so it is less than 1000, and I assume I shouldn't have to do sync in batches as is less than 1000, but still the error comes up, have you encountered this error or do you guys have any input on how to solve that?
You mentioned you have 632 records - do you expect that it will always be less than 1000? If so, you don't need to use batches at all. Just remove the rule input from your source expression and the record sync will assume all of your data is returned in a single batch.
If you expect that your data could grow to more than 1000 rows, then you will need to configure batches. The easiest way to do this like Stefan said is to return an empty set or null if there's no data.
I think the main thing is that if you use a batch number, you must make sure that you receive different results when different batches are provided. The way it will work is that Appian will iterate over the batch numbers indefinitely starting with 1. When batch 2 is provided, you need to make sure that it either returns the next 1000 results or returns nothing.
Without knowing your web service, what I would suggest is to try and test several batches 1, 2, 3. If you are receiving different results for each batch, you should be fine. If you're receiving the same results for each batch, you probably need to make an update to your integration to make a request for a different batch of data.
Now, with this, I understand I'm creatingcondition to return an empty value if the batch is empty as well as you mentioned, but I get this error now when trying to use this rule to populate data on my record type
Ok cool, looks like you're headed in the right direction! Do you know if your source system has a method of sending the data in batches? A lot of integrations will accept a query parameter or something that allows you to determine how many items are returned at a time.
If your source system doesn't support batching, then there are potentially ways you could batch the data in Appian after returning the response. For instance, you can use the todatasubset() function to apply a batch number and start index to your final list and you can make it return only 1000 at a time. However, I'd only advise this if it's still a relatively small amount of data (probably up to a few thousand rows). Your best bet is to work with your source system and look for a way to batch the results.
Thanks Peter, I've been checking and my source is BigQuery, but it seems like it is not possible to send information in batches, as you need to connect to it via API and the response ill come as s single response as far as I know.
So this means I will need to use the todatasubset function, to apply a rule there or make it work on my own parameters correct? Can you provide an example of how that can be done? Also is the todatasubset function, based on a plugin? I'm asking this because I've encountered issues when using this type of functions as it will not let me use the sync option because of the function I'm using to map
I had a quick glance at the BigQuery documentation. I saw that it supports pagination. At least when using SQL statements. I did not find out how to do that via the API, but I am pretty sure that it supports that as well.
Yeah I would highly recommend using the paging from the source system if it exists. If not, you might be able to use todatasubset like this to simulate it. However, keep in mind that simulating the paging like this will be very inefficient because you must return all the data every time.
I'm hoping someone can help me. I'm getting an error when I create Vendor Payment journals. The system generates a batch number that's already been used before. I have checked the number sequence config and it's tracking the next number correctly namely 000683, however, when I create a new payment journal the next number created is 000002. I have reset the sequence, but it seems that this is not working. I have tested this error in my UAT environment and it's replicating the same error I'm getting in Live.
Another issue is when I delete this line a few times, or I have another user login to the UAT environment and test alongside me, they get the next sequence number correctly, and can generate each next number, however when they delete all the lines and try to capture a new journal they get 000002. I have tried to capture and post the journal with the 000683 journals, but the system fails and I get the same error that the record already exists...
hi guys .. i checked , but find nothing that matches the sequence number voucher number that pops up... its a very odd .... the fix you guys gave me is perfect , but the moment i try to post the journal it says the voucher number has been used : cannot create a record in general journal entry . date. the record already exists
Ramit , where is the voucher number generated from? when i create a general journal voucher , i note that it creates a voucher number in the journal line, where is that one configured ? i cant locate where it draws that voucher number from ? would you happen to know where to look
My partner and I own a Vegan dessert company and we have recently developed a product that will be available for commercial purchase, we have sent the sample for nutritional analysis which we understand is required by EU/UK law but I am also aware that for any product for commercial sale will need a batch number to identify the product in case of expiry/product recalls etc.
I have very minimal experience apart from working with LEAN processing/manufacturing in my previous job, does somebody have a simple system/quality management system that we could adopt? What is the simplest way to generate batch numbers?
There are 7 ingredients that go into our product mix so I would assume we would need to be able to list these and their description, manufacturers & expiry dates etc for each batch number we generate?
You should log the expiration/lot codes for each of your ingredients in your internal records/traceability system so that if you ever had a recall from a specific ingredient, you could look at your records and see which finished good lot #s it went into.
You should consider how large or small your lots are. I don't mean in number of pieces, I mean in 'time' of production. Do you produce one batch a day? One batch a week? Keep in mind that the LARGER your batches are, the more work is involved in a recall.
Thank you very much for your assistance, I think you are right and that I will be going forward with Julian Date, I just want to clear this up so I produce the correct batch numbers, we will only be creating one batch per day.
Whatever you come up with, you should be able to explain it in a 1 page 'lot code explanation' document that some customers may ask for. As a general rule of dealing with anyone at another company understanding what you're doing, I always assume they're the dumbest person I know. I don't mean that insultingly, but if I can't explain it so the dumbest person I know can understand, it's probably too complicated.
Thanks for clearing that up, I think as the batches are to be made on a daily basis, it would be easier for me to generate them such as 250118-19 , this way the 1-year expiry will be at the end of the batch.
I think you're still overcomplicating it. I have seen companies using a simple sequential number for batch numbers. As long as you have all the information linking to each batch, that's all you will need. You don't need to encode expiry information as that should be on the product.
A batch code is usually stamped or printed with a dot-matrix printer. You can be confused with the catalog number of the product (Ref.) and EAN / UPC number (barcode), which also appear on the packaging, but these numbers are printed in a standard way. Batch codes can be distinguished because they are applied later to the already printed package.
I have items configured to be FEFO controlled, therefore, when I create a production order, Picking list journal should assign a batch number automatically when registering material consumption. Automatic BOM consumption is set to be registered at Start of production order with Flushing principle. Yet, picking list journal does not assing the batch number for the BOM components, where do I configure this?
Set the reservation flag in production control parameters to anything except manual, it will then reserve the batch to allow it to post. Kind of defeats the object of batch control in my opinion as you auto-post and this is not necessarily what they will have used
Batch number? "What is THAT?", I hear you cry. Is it the same as the article number? You might not know what the term means and understandably ask yourself why it is important when re-ordering your favourite wallpaper.
In fact, the significance of the batch number of wallpaper rolls is often neglected. Consequently, when re-ordering wallpaper, most people look for the article number or the EAN code. That is by no means a mistake, but the batch number is the most significant factor for achieving a unified, harmonious appearance for walls or ceilings. This blog will provide a detailed explanation of what batch numbers are and why you should pay particular attention to them before re-ordering wallpaper.
c80f0f1006