Unable to Edit Commerce Checkout Flow Settings

When attempting to configure Checkout Flow instances (eg, /admin/commerce/config/checkout-flows/manage/default) clicking on the ‘Settings’ (cog) icon for any of the panes generates an ‘AssertionError‘ and the settings cannot be altered.

AssertionError: The container was serialized. in assert() (line 28 of /app/web/core/lib/Drupal/Core/DependencyInjection/Container.php)  
#0 /app/web/core/lib/Drupal/Core/DependencyInjection/Container.php(28): assert(false, 'The container w...')
#1 (internal function): DrupalCoreDependencyInjectionContainer->__sleep()
#2 /app/web/core/lib/Drupal/Component/Serialization/PhpSerialize.php(14): serialize(Array)
#3 /app/web/core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php(80): DrupalComponentSerializationPhpSerialize::encode(Array)
#4 /app/web/core/lib/Drupal/Core/Form/FormCache.php(197): DrupalCoreKeyValueStoreDatabaseStorageExpirable->setWithExpire('form-GQXUq0kLih...', Array, 21600)
#5 /app/web/core/lib/Drupal/Core/Form/FormBuilder.php(459): DrupalCoreFormFormCache->setCache('form-GQXUq0kLih...', Array, Object(DrupalCoreFormFormState))
#6 /app/web/core/lib/Drupal/Core/Form/FormBuilder.php(437): DrupalCoreFormFormBuilder->setCache('form-GQXUq0kLih...', Array, Object(DrupalCoreFormFormState))
#7 /app/web/core/lib/Drupal/Core/Form/FormBuilder.php(629): DrupalCoreFormFormBuilder->rebuildForm('commerce_checko...', Object(DrupalCoreFormFormState), Array)
#8 /app/web/core/lib/Drupal/Core/Form/FormBuilder.php(321): DrupalCoreFormFormBuilder->processForm('commerce_checko...', Array, Object(DrupalCoreFormFormState))
#9 /app/web/core/lib/Drupal/Core/Controller/FormController.php(91): DrupalCoreFormFormBuilder->buildForm(Object(Drupalcommerce_checkoutFormCheckoutFlowForm), Object(DrupalCoreFormFormState))
#10 (internal function): DrupalCoreControllerFormController->getContentResult(Object(SymfonyComponentHttpFoundationRequest), Object(DrupalCoreRoutingRouteMatch))
#11 /app/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#12 /app/web/core/lib/Drupal/Core/Render/Renderer.php(573): DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->DrupalCoreEventSubscriber{closure}()
#13 /app/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): DrupalCoreRenderRenderer->executeInRenderContext(Object(DrupalCoreRenderRenderContext), Object(Closure))
#14 /app/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#15 /app/vendor/symfony/http-kernel/HttpKernel.php(151): DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->DrupalCoreEventSubscriber{closure}()
#16 /app/vendor/symfony/http-kernel/HttpKernel.php(68): SymfonyComponentHttpKernelHttpKernel->handleRaw(Object(SymfonyComponentHttpFoundationRequest), 1)
#17 /app/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): SymfonyComponentHttpKernelHttpKernel->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true)
#18 /app/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): DrupalCoreStackMiddlewareSession->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true)
#19 /app/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): DrupalCoreStackMiddlewareKernelPreHandle->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true)
#20 /app/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupalpage_cacheStackMiddlewarePageCache->pass(Object(SymfonyComponentHttpFoundationRequest), 1, true)
#21 /app/web/core/modules/ban/src/BanMiddleware.php(50): Drupalpage_cacheStackMiddlewarePageCache->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true)
#22 /app/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): DrupalbanBanMiddleware->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true)
#23 /app/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): DrupalCoreStackMiddlewareReverseProxyMiddleware->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true)
#24 /app/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): DrupalCoreStackMiddlewareNegotiationMiddleware->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true)
#25 /app/web/core/lib/Drupal/Core/DrupalKernel.php(708): StackStackedHttpKernel->handle(Object(SymfonyComponentHttpFoundationRequest), 1, true)
#26 /app/web/index.php(19): DrupalCoreDrupalKernel->handle(Object(SymfonyComponentHttpFoundationRequest))
#27 {main}

This behaviour is not seen on other Drupal forms across the site, including other pieces of Commerce, so the assumption is that the cause is the Checkout module.
Where similar errors have been reported elsewhere in Drupal, it’s usually down to the Controller class not using DependencySerializationTrait, but this seems to be implemented in /commerce/modules/checkout/src/Controller/CheckoutController.php

The bad news is that I cannot replicate it: rolled another quick site using just Drupal 8.9.9 and Commerce 8.x-2.21 and the expected behaviour is working correctly.

Proposed resolution

I’ve no idea what’s causing this, and whether it is a config issue, or an issue with the code. As with every other Drupal site, there are lots of other modules, but it’s knowing where to start…

Ensure a vertex has the highest flow in max-flow algorithm

Let’s suppose we have a supplier, sorting facilities, shipping companies and
a target warehouse.

We produce n packages of the product, and each goes to a different sorting facility (so every facility receives exactly one package).

A sorting facility then passes the processed product to a shipping company,
each sorting facility is only connected to a limited number of shipping companies, meaning that It can only use a limited subset of all shippers to deliver the product to the warehouse.

Now, the company owner’s brother runs shipping company A and the owner really want’s to help his brother start up his bussiness.
We need to ensure that all packages are delivered, but company must A deliver most of them – so It’s a max flow problem with a requirement, that vertex corresponding to company A has the highest flow of all the shipping companies vertices.

Here Is a sample graph representation I have came up with. Vertex 0 is the supplier, vertices 1-6 are the sorting facilities, vertices 7-10 are the shipping companies, and 11 is the warehouse.

Now, assuming vertex 7 is the owner’s brother’s company, we want to get a maximum flow in this graph such that flow through 7 is greater than flow through 8, 9 or 10

How can this graph (or any of the max-flows algorithms) be modified to ensure, that the requirement holds for vertex 7?
sample graph

sharepoint online – Create a PowerApp’s Approval Requests CDS Browse screen to show a link to the MS Flow Approval items

I want to build a PowerApp which shows the MS Flow requests from this page:-

enter image description here

So first step i did is that i add a new PowerApp from CDS >> Approval Requests, as follow:-

enter image description here
enter image description here

Where i will get this Browse screen automatically:-

enter image description here

Now i need to modify this Built-in browse screen, to show URLs which will take the user to the MS flow Approve/Reject screen.. i found that i can access these data..

enter image description here

But i am not sure if i can use/benefit from this data to build a URL to the MS Flow Approvals items? so the user from the PowerApp Browser screen can click on a link which will open this MS flow screen to provide a response:-

enter image description here

sharepoint online – pause until – Condition || Microsoft Flow

Stack Exchange Network

Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Magento2 staging Update work flow question

Hi I would like to know beside staging_update table, where I can find the related items information? such as I set a schedule special price start date and end date. Where I can find the start date and end date of this item from database?


Flow to modify columns on dynamically determined Sharepoint library

I have a flow through Power Automate and one of its functions is to modify metadata of a file stored in a Sharepoint library based on certain criteria. The metadata is stored in custom columns and the document may be located in a number of libraries, depending on its country.

At the moment, I read the country from the file, this I feed into the Switch control and for each case, I have Update File Properties action, which modifies the metadata. This works perfectly, however it feels very inelegant because for each newly supported country, I have to add a case into the Switch control and define the steps (and if I decide to implement a change, I will need to do so again for each case). I can input the library name dynamically as "DL_" & File.Country, however in that case the action does not offer me the custom columns because it does not know which library it will access before run time.

Is there a way around this limitation that would allow me to remove the Switch/Case controls? The columns with metadata are the same in each of the document libraries (they are built from the same template), so I am essentially looking for a way to do it dynamically.

(moved here from Super User forum)

sharepoint online – MS Flow is raising this error :- ‘XrmSystemUserDisabled’. Error Message: ‘The CDS system user record representing user is disabled

When the MS flow runs it raises the following error on a “Start and Wait for Approval” action:-

The request failed. Error code: 'XrmSystemUserDisabled'. Error Message: 'The CDS system user record representing user 'admin.user@***.com' is disabled. Please ask a database administrator to enable this user.'.

Here is a screen shot of my Flow and the error i am getting:-
enter image description here

now the admin.user@***.com is our global admin and is enabled,,, so why the error is saying that the user account is disabled… any advice? Also seems all the Connections are working well as follow:-
enter image description here

so not sure what is going on?

Drupal Commerce 2 Checkout flow

I am working on a side that intergrates with out companies ordering and payment system. I have a flow I need to create that, after the customer clicks the checkout button, it takes them to a login/register page, then to a place to enter their shipping and billing address, then to a shipping page (which our service provides the shipping costs), then to a payment page. I created a custom flow called ‘SRSCheckoutFlow’ and here is my code:

class SRSCheckoutFlow extends CheckoutFlowWithPanesBase {

     * {@inheritdoc}
    public function getSteps() {
      return (
          'login' => (
            'label' => $this->t('Login'),
            'previous_label' => $this->t('Return to cart'),
            'has_order_summary' => FALSE,
          'order' => (
            'label' => $this->t('Order Information'),
            'previous_label' => $this->t('Return to login'),
            'has_order_summary' => FALSE,
          'shipping' => (
            'label' => $this->t('Shipping Service'),
            'previous_label' => $this->t('Return to order information'),
            'has_order_summary' => FALSE,
          'review' => (
            'label' => $this->t('Review'),
            'has_order_summary' => TRUE,
          'payment' => (
            'label' => $this->t('Payment'),
            'has_order_summary' => TRUE,
          'payment_processing' => (
            'label' => $this->t('Payment Processing'),
            'has_order_summary' => TRUE,
        ) + parent::getSteps();


Problems are when I am not logged in, I go to the login/register page as desired but after I register, I get sent to a blank Checkout page. If I am already logged it, I get sent to the shipping page which misses the part where I need the user to add their shipping and billing information.

In Home > Administration > Commerce > Configuration > Checkout flows, I have all the steps created in the SRSCheckoutFlow and I added the following to each step


  • Login or continue as guest

Order Information

  • Shipping information
  • Contact information

Shipping Service

  • Shipping Services (which is custom and showing correctly)



Am I missing something in the flow that jumps over the Shipping information and Contact information section? Thanks and let me know!

real analysis – Uniformly estimate for hausdorff dimension of section of a given flow

I wondering the following result
is right or not:

$I=(0.1)$ . consider a continuous dynamic system,

&varphi_{t}: I^{2} rightarrow I^{2} \
&(x, y) rightarrow({t x}, y)

where ${x}$ is the part of $tx$. we have $forall t,sin R, varphi_{t+s}=varphi_{t} circ varphi_{s}$ , and consider following two maps:
P: I^{2} longrightarrow I Q: I^{2} rightarrow I\
quad(x, y) rightarrow{x+y} (x, y) rightarrow x

Let$quad S subseteq I^2$ be a subset of $I^2$, satisfied $mu_{d+1}^{*}left(cup_{t in(0 . 1)}varphi_{t}(S))=0right.$ ($1leq dleq 1$, $mu_{d+1}^{*}$ is the $d+1$– hausforff outer measure), and $mu^{*}(Q(S))>0$ ($mu^{*}$ is the lebesgue outer measure)
then for almost all $t in(0.1)$ except a lebesgue measure null set, we have

Let $S$ be any subset of $I^2,$ and $delta>0$ a real number. Define
$H_{delta}^{d}(S)=inf left{sum_{i=1}^{infty}left(operatorname{diam} U_{i}right)^{d}: bigcup_{i=1}^{infty} U_{i} supseteq S, operatorname{diam} U_{i}<deltaright}$, $H^{d}(S):=sup _{delta>0} H_{delta}^{d}(S)=lim _{delta rightarrow 0} H_{delta}^{d}(S)$ is the $d$-hausdorff outer measure of $S$.

power automate – Column can be evaluated in one Flow but not another

I’m accessing the Version of a list element via MS Flow. It works in Flow A accessing List X but not in Flow B accessing List Y. Both Flows are triggered by the creation/change of items in the respective lists. Both lists have major versions activated and the views are set to display the version column.

Flow A uses the expression


which evaluates properly (the way I want) to my own surprise, because VersionNumber is a string of the format M.m.

Flow B uses a different expression


which doesn’t work, because the interpreter stops at int() complaining about improper parameters. To track this down I added a string variable to Flow B to get the VersionNumber before conversion and it is apparently empty (“”). But the JSON-data clearly contains the pair “{VersionNumber}” : “M.m”, as I can check it in the triggerBody() after doing a test run.

So difference seems to be that the version string is empty with my second sample hence it cannot be converted to int. Where should I start to search?