All Nippon Airways Co. and Japan Airlines Co. said Friday that their Boeing 787 Dreamliners won't be affected by a recently discovered software error that could result in a total loss of power even during flight.

U.S. federal aviation regulators are expected to order owners of the aircraft to shut down the plane's electrical power system periodically after Boeing Co. issues notices about the problem.

The Federal Aviation Administration said Thursday that Boeing found during laboratory testing that the plane's power control units could shut down the generators if they ran interrupted for 248 days straight, or about eight consecutive months.

ANA, a subsidiary of ANA Holdings Inc., owns 35 Boeing 787s but said it shuts down the planes while they are parked at night.

JAL, which has a fleet of 20 Dreamliners flying international routes, said it shuts them down after they return to Japan.

The FAA will soon issue an airworthiness directive to operators of the planes urging them to shut them off periodically.

The Land, Infrastructure, Transport and Tourism Ministry plans to follow suit with its own directive once the FAA acts, ministry sources said.